-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Introduce sequence-number-based recovery #22484
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
Merged
jasontedor
merged 46 commits into
elastic:master
from
jasontedor:replica-sequence-number-recovery
Jan 27, 2017
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
404b8dc
Introduce sequence number-based recovery
jasontedor d360a23
Simplify sequence number-based recovery
jasontedor 6ec0ef6
Merge branch 'master' into replica-sequence-number-recovery
jasontedor b9200cf
Remove obsolete field from RecoverySourceHandler
jasontedor 91e1ff0
Handle translog missing while preparing recovery
jasontedor 1c14260
Skip adding operations without sequence number
jasontedor 8b0e501
Revert adding no-ops on version confict in replica
jasontedor dac513a
Revert whitespace change in MultiSnapshot.java
jasontedor 81a1e1c
Bubble up translog I/O exceptions during recovery
jasontedor 8960522
Add assertion on number of recovered ops
jasontedor d71aa16
Merge branch 'master' into replica-sequence-number-recovery
jasontedor b6e6cc3
Restore logger specific to GlobalCheckpointTracker
jasontedor ab18bde
Use readLong/writeLong for serializing seq. no.
jasontedor cea70f4
Remove unneeded assertion disjunction in engine
jasontedor 34fbb37
Explicitly prepare shard for peer recovery
jasontedor 1929c03
Load sequence number statistics from the store
jasontedor c0169c2
Rename replication test case method
jasontedor 999ca91
Iteration
jasontedor 7281b75
Add in-flight ops recovery test
jasontedor 320301c
Add assertion on recoveries targeting old replicas
jasontedor 50d3191
Add defensive assertion on starting seq. no.
jasontedor 2596dcd
Store#loadSeqNoStats iteration
jasontedor cc2002c
Simplify preparing start recovery request
jasontedor 1e59f84
Only mark assigned sequence numbers as completed
jasontedor cc30114
Iteration
jasontedor 781f276
Add comment regarding starting seq. no.
jasontedor f64b26f
Merge branch 'master' into replica-sequence-number-recovery
jasontedor 3a70bd7
Add missing license header
jasontedor 88fc801
Fix start recovery request serialization test
jasontedor 6a0b70e
Revert start recovery request assertion
jasontedor 4e35141
Merge branch 'master' into replica-sequence-number-recovery
jasontedor 3571036
Add note about snapshot restore impact on recovery
jasontedor da94b28
Rename EvilRecoveryIT to EvilPeerRecoveryIT
jasontedor e801c5b
Use bulk thread pool size for number of docs
jasontedor a4cf33e
Remove extraneous blank line
jasontedor c16295a
Temporarily enable trace logging on test
jasontedor 32c6702
More trace logging for test
jasontedor 76f8807
Fix shard ID in logging statement
jasontedor adafa21
Fix RFGIT#testReusePeerRecovery test bug
jasontedor 270a68a
Cleanup
jasontedor 2e67a0b
Revert "Fix RFGIT#testReusePeerRecovery test bug"
jasontedor 06a3785
Rewrite reuse peer recovery test
jasontedor 137ffb4
Merge branch 'master' into replica-sequence-number-recovery
jasontedor eeaa4f9
Remove unused imports
jasontedor 62aabb0
Cleanup test
jasontedor 97e0b20
More cleanup
jasontedor 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -379,6 +379,7 @@ void setTook(long took) { | |
| void freeze() { | ||
| freeze.set(true); | ||
| } | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| } | ||
|
|
||
| public static class IndexResult extends Result { | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Looks like a typo here