-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix checkpoint handling to prevent segment replication infinite loop #18636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18636 +/- ##
============================================
+ Coverage 72.79% 72.84% +0.05%
- Complexity 68362 68466 +104
============================================
Files 5563 5563
Lines 314174 314176 +2
Branches 45554 45555 +1
============================================
+ Hits 228703 228871 +168
+ Misses 66887 66764 -123
+ Partials 18584 18541 -43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Ashish Singh <[email protected]>
I have not been able to repro the issue in ITs. I have tried reproducing it, will try to understand why doesn't it happen on local. |
Signed-off-by: Ashish Singh <[email protected]>
...r/src/test/java/org/opensearch/indices/replication/SegmentReplicationTargetServiceTests.java
Show resolved
Hide resolved
I was able to modify an unit test that was showing the behaviour where the cyclic loop of segrep is seen always.
|
@mch2 I have tried making the above change which should fix the recursion loop. Do review if you can. |
Description
This fixes an issue in segrep flow which causes infinite segrep loop. The analysis is present in the issue - #18605.
Related Issues
Resolves #18605
Check List
[ ] API changes companion pull request created, if applicable.[ ] Public documentation issue/PR created, if applicable.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.