-
Notifications
You must be signed in to change notification settings - Fork 24.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
Flush old indices on primary promotion and relocation #27580
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
41d27c8
add testRecoveryWithConcurrentIndexing
bleskes e99de20
fix for promotion
bleskes 277c87a
relax. You can't guarantee what you want
bleskes d77e00a
assert we ship what we want to ship
bleskes af3f815
verify we ship the right ops
bleskes 04cbccf
logging
bleskes eb3bd72
doh
bleskes 0a75735
lint
bleskes 4c4a1bc
more intuitive range indication
bleskes a29acf2
fix testSendSnapshotSendsOps
bleskes 895b78b
add primary relocation test
bleskes 8782377
index specific ensure green
bleskes b77d4e8
fix counts
bleskes 22d5bfa
tighten testRelocationWithConcurrentIndexing
bleskes b2082b0
flush on relocation
bleskes 9935225
simplify relation ship between flush and roll
bleskes 10fbb3e
add explicit index names to health check
bleskes fb8a105
beef up testSendSnapshotSendsOps
bleskes c1a0cc7
fix testWaitForPendingSeqNo
bleskes e8f65f3
feedback
bleskes 6c5140c
more feedback
bleskes dce71ab
last feedback round
bleskes 6989d52
reduce the ensure green
bleskes c09e419
fix testSendSnapshotSendsOps as we always send at least one (potentia…
bleskes 53869b3
extra space?
bleskes 9467758
add empty shard test
bleskes 09f7133
make sure seq no info is in commit if recovering an old index
bleskes 1501d4a
add assertions that commit point in store always has sequence numbers…
bleskes e5a734c
hard -> shard
bleskes 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
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.
If
endingSeqNo
is exclusive, then this should probably beendingSeqNo - 1
. I know that it does not really matter as we only use themarkSeqNoAsCompleted
method, we might as well initialize this tonew LocalCheckpointTracker(requiredSeqNoRangeStart - 1, requiredSeqNoRangeStart - 1)
, but yeah, let's use inclusive bounds forendingSeqNo
;-)