-
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
Fix testDataOnlyNodePersistence #56893
Merged
DaveCTurner
merged 1 commit into
elastic:master
from
DaveCTurner:2020-05-18-fix-testDataOnlyNodePersistence
May 18, 2020
Merged
Fix testDataOnlyNodePersistence #56893
DaveCTurner
merged 1 commit into
elastic:master
from
DaveCTurner:2020-05-18-fix-testDataOnlyNodePersistence
May 18, 2020
Conversation
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 test failed if all 1000 top-level `rarely()` calls in the loop returned `false`, because then we would never set the term of the persisted state. This commit fixes this by adding an earlier call to `persistedState#setCurrentTerm` and also randomises the number of iterations to catch other potential issues like this. It also changes the test to clean up the threadpools it starts whether it passes or fails.
DaveCTurner
added
>test
Issues or PRs that are addressing/adding tests
:Distributed Coordination/Cluster Coordination
Cluster formation and cluster state publication, including cluster membership and fault detection.
v8.0.0
v7.7.1
v7.8.1
v7.9.0
labels
May 18, 2020
Pinging @elastic/es-distributed (:Distributed/Cluster Coordination) |
elasticmachine
added
the
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
label
May 18, 2020
Review tip: if you ignore whitespace then this change is +11/−2 rather than +92/-83. |
ywelsch
approved these changes
May 18, 2020
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.
LGTM. Thanks!
DaveCTurner
added a commit
that referenced
this pull request
May 18, 2020
This test failed if all 1000 top-level `rarely()` calls in the loop returned `false`, because then we would never set the term of the persisted state. This commit fixes this by adding an earlier call to `persistedState#setCurrentTerm`. It also changes the test to clean up the threadpools it starts whether it passes or fails.
DaveCTurner
added a commit
to DaveCTurner/elasticsearch
that referenced
this pull request
May 18, 2020
PR elastic#56893 was supposed to randomise the iteration count in `testDataOnlyNodePersistence` but this change was mistakenly omitted. This commit addresses this.
DaveCTurner
added a commit
that referenced
this pull request
May 18, 2020
This test failed if all 1000 top-level `rarely()` calls in the loop returned `false`, because then we would never set the term of the persisted state. This commit fixes this by adding an earlier call to `persistedState#setCurrentTerm`. It also changes the test to clean up the threadpools it starts whether it passes or fails.
DaveCTurner
added a commit
that referenced
this pull request
May 18, 2020
PR #56893 was supposed to randomise the iteration count in `testDataOnlyNodePersistence` but this change was mistakenly omitted. This commit addresses this.
DaveCTurner
added a commit
that referenced
this pull request
May 18, 2020
PR #56893 was supposed to randomise the iteration count in `testDataOnlyNodePersistence` but this change was mistakenly omitted. This commit addresses this.
DaveCTurner
added a commit
that referenced
this pull request
May 18, 2020
PR #56893 was supposed to randomise the iteration count in `testDataOnlyNodePersistence` but this change was mistakenly omitted. This commit addresses this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Distributed Coordination/Cluster Coordination
Cluster formation and cluster state publication, including cluster membership and fault detection.
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
>test
Issues or PRs that are addressing/adding tests
v7.8.1
v7.9.0
v8.0.0-alpha1
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.
This test failed if all 1000 top-level
rarely()
calls in the loop returnedfalse
, because then we would never set the term of the persisted state. Thiscommit fixes this by adding an earlier call to
persistedState#setCurrentTerm
and also randomises the number of iterations to catch other potential issues
like this. It also changes the test to clean up the threadpools it starts
whether it passes or fails.
Closes #56763