Skip to content

Fix PrimaryAllocationIT#testForceStaleReplicaToBePromotedToPrimary#35728

Merged
vladimirdolzhenko merged 4 commits intoelastic:masterfrom
vladimirdolzhenko:fix/35497
Nov 20, 2018
Merged

Fix PrimaryAllocationIT#testForceStaleReplicaToBePromotedToPrimary#35728
vladimirdolzhenko merged 4 commits intoelastic:masterfrom
vladimirdolzhenko:fix/35497

Conversation

@vladimirdolzhenko
Copy link
Copy Markdown
Contributor

@vladimirdolzhenko vladimirdolzhenko commented Nov 20, 2018

Failure described in #35497 could be reproduced under load or just adding some delay in between reroute command execution and getting cluster state (allocation ids) - in that case recovery already passed and allocation ids contain actual node id rather expected allocation id right after command execution.

The fix is to grab in-sync set of the 1st cluster state change after reroute execution from ClusterService of the node.

Closes #35497

grab in-sync set of the 1st cluster state change after reroute execution

Closes 35497
@vladimirdolzhenko vladimirdolzhenko added >test Issues or PRs that are addressing/adding tests :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v7.0.0 v6.5.0 v6.6.0 labels Nov 20, 2018
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@elastic elastic deleted a comment Nov 20, 2018
Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Asked for a bit more logging just in case it fails again.

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vladimirdolzhenko
Copy link
Copy Markdown
Contributor Author

thanks @DaveCTurner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >test Issues or PRs that are addressing/adding tests v6.6.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sporadic failure in testForceStaleReplicaToBePromotedToPrimary

4 participants