-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Segment Replication] Update RefreshPolicy.WAIT_UNTIL for replica shards with segment replication enabled to wait for replica refresh #6464
Merged
Rishikesh1159
merged 25 commits into
opensearch-project:main
from
Rishikesh1159:wait_until
Mar 10, 2023
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
055f225
Initial draft PR for wait_until with segrep
Rishikesh1159 36f3851
Merge branch 'opensearch-project:main' into wait_until
Rishikesh1159 c1a4c87
Refactor code and fix test failures.
Rishikesh1159 c03fa8f
Merge branch 'opensearch-project:main' into wait_until
Rishikesh1159 666dd0b
Merge branch 'wait_until' of https://github.com/Rishikesh1159/OpenSea…
Rishikesh1159 3798512
add comments and fix tests.
Rishikesh1159 52ad227
Refactor code, address comments and fix test failures.
Rishikesh1159 423a0c8
Aplly spotless check
Rishikesh1159 413b3d4
Merge branch 'opensearch-project:main' into wait_until
Rishikesh1159 ed8b4a0
Adress comments and add integ test.
Rishikesh1159 6f2b174
Merge branch 'wait_until' of https://github.com/Rishikesh1159/OpenSea…
Rishikesh1159 1260905
Address comments and fix failing tests.
Rishikesh1159 adc9bb0
Merge branch 'opensearch-project:main' into wait_until
Rishikesh1159 17fd7a1
Fixing failing test.
Rishikesh1159 672a67f
Merge branch 'opensearch-project:main' into wait_until
Rishikesh1159 f3ee8d6
Merge branch 'wait_until' of https://github.com/Rishikesh1159/OpenSea…
Rishikesh1159 64410d6
Remove unused code.
Rishikesh1159 b33aca2
Addressing comments and refactoring
Rishikesh1159 4b47039
Adding max refreshlisteners limit that a replica shard can hold and f…
Rishikesh1159 6bd0b3d
Changing assert message
Rishikesh1159 d62aaca
Fix call to release refresh listeners on replica shards.
Rishikesh1159 0a79735
Fix call to release refresh listeners on replica shards.
Rishikesh1159 f285ba3
Address comments.
Rishikesh1159 83a1cac
Fixing compile errors.
Rishikesh1159 c0721b0
Spoltss Apply
Rishikesh1159 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets add a doc count assertion here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if primary goes down before writing all operations to translog? In this case assert on doc count would fail. May be from response of wait_until we can get count of how many docs got written in translog and assert on that count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right, not all of the requests would succeed in that case, so you would need to compute that count as you do here.