-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[Zen2] Add storage-layer disruptions to CoordinatorTests #34347
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
DaveCTurner
merged 28 commits into
elastic:zen2
from
DaveCTurner:2018-10-08-disrupt-storage
Oct 13, 2018
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
ce1071e
Fix bugs in fixLag()
DaveCTurner 5c20e63
Add low-level bootstrap implementation
DaveCTurner cff9df7
Merge branch '2018-10-07-low-level-bootstrapping' into 2018-10-08-mer…
DaveCTurner d6d1ee4
Add storage-layer disruptions to CoordinatorTests
DaveCTurner 5e7a4f9
Assert that we clean up disruptStorage correctly
DaveCTurner 5c47f55
Better message in the case where a quorum has not been discovered
DaveCTurner dbb2b1a
Review feedback
DaveCTurner ef712a5
Set initial configuration at the start of stabilisation
DaveCTurner dcbacd8
Describe why the first election should succeed
DaveCTurner 6644618
Merge branch '2018-10-07-low-level-bootstrapping' into 2018-10-08-dis…
DaveCTurner 040657b
Merge branch 'zen2' into 2018-10-08-disrupt-storage
DaveCTurner b81ef53
Fail before or after
DaveCTurner 9bd4741
Handle exception when bumping term
DaveCTurner 1db8419
Throw more kinds of exception
DaveCTurner c72e863
Log too
DaveCTurner b66b991
Merge branch 'zen2' into 2018-10-08-disrupt-storage
DaveCTurner 6ce5f67
More finallys
DaveCTurner 68bdc08
More finally
DaveCTurner e1e33fa
Fix node to follow
DaveCTurner 3dac8fa
become candidate on failure
DaveCTurner ac1d564
Do not always start election scheduler
DaveCTurner 27de8d7
Revert "Do not always start election scheduler"
DaveCTurner 7b6985b
Revert "become candidate on failure"
DaveCTurner 02c1cf1
Revert "Fix node to follow"
DaveCTurner d43916e
Revert "More finally"
DaveCTurner 22f5af7
Revert "More finallys"
DaveCTurner 38fac65
Revert "Handle exception when bumping term"
DaveCTurner fce76c2
Remove possiblyFail() calls after updating state
DaveCTurner 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
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.
maybe inject failure both before or after executing the actual action.
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.
Hmm, I tried this and it's found a lot of places where we assume an exception means the write was unsuccessful. We can fix these, but I am not sure this is the right thing to do. We plan on finishing each write with a rename-and-fsync-the-directory. A failure before the fsync (including during the rename) means we didn't change state. I'm unsure how we should interpret a failed fsync.
/cc @andrershov re #33958