Skip to content

Fix race in testCancelledRecoveryAbortsDownloadPromptly #96431

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

Conversation

DaveCTurner
Copy link
Contributor

If the source node applies the cluster state before the target then it responds with an IllegalIndexShardStateException which makes the target retry. But we don't want any retries. This commit avoids the race by delaying the response on the transport layer.

Closes #96427

If the source node applies the cluster state before the target then it
responds with an `IllegalIndexShardStateException` which makes the
target retry. But we don't want any retries. This commit avoids the race
by delaying the response on the transport layer.

Closes elastic#96427
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. v8.9.0 labels May 30, 2023
@DaveCTurner DaveCTurner requested review from fcofdez and pxsalehi May 30, 2023 12:12
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 30, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Contributor

@fcofdez fcofdez left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label May 30, 2023
@DaveCTurner
Copy link
Contributor Author

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit ad463c9 into elastic:main May 30, 2023
@DaveCTurner DaveCTurner deleted the 2023-05-30-fix-testCancelledRecoveryAbortsDownloadPromptly branch May 30, 2023 16:47
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jun 5, 2023
This test issue was addressed in elastic#96431 but without unmuting the test.
DaveCTurner added a commit that referenced this pull request Jun 6, 2023
This test issue was addressed in #96431 but without unmuting the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed Indexing/Recovery Anything around constructing a new shard, either from a local or a remote source. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] SnapshotBasedIndexRecoveryIT testCancelledRecoveryAbortsDownloadPromptly failing
4 participants