Skip to content

Fix CloseWhileRelocatingShardsIT #38728

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
merged 1 commit into from
Feb 12, 2019

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Feb 11, 2019

Sadly I didn't notice in #38159 that the test CloseWhileRelocatingShardsIT was reusing multiple instances of SendRequestBehavior for the same transport service address. This is wrong because only the last behavior configured for the transport service address will be effectively used.

This pull request changes the CloseWhileRelocatingShardsIT so that a single SendRequestBehavior is used in the test to block and hold on start recovery requests. It also allows recoveries to be interrupted (which is the case when the shard is closed) and records interrupted recoveries to later check that the index is effectively closed.

Closes #38090

@tlrx tlrx added >test Issues or PRs that are addressing/adding tests v7.0.0 :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. v6.7.0 v8.0.0 v7.2.0 labels Feb 11, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@tlrx tlrx requested a review from ywelsch February 11, 2019 14:53
@tlrx tlrx merged commit f15be14 into elastic:master Feb 12, 2019
@tlrx tlrx deleted the fix-CloseWhileRelocatingShardsIT-again branch February 12, 2019 13:03
@tlrx
Copy link
Member Author

tlrx commented Feb 12, 2019

Thanks @ywelsch

tlrx added a commit that referenced this pull request Feb 12, 2019
tlrx added a commit that referenced this pull request Feb 12, 2019
tlrx added a commit that referenced this pull request Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >test Issues or PRs that are addressing/adding tests v6.7.0 v7.0.0-rc1 v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] CloseWhileRelocatingShardsIT.testCloseWhileRelocatingShards failures
6 participants