Skip to content
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 IndexFoldersDeletionListenerIT.testListenersInvokedWhenIndexIsRelocated (#66329) #66511

Merged
merged 2 commits into from
Dec 17, 2020

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Dec 17, 2020

The tests testListenersInvokedWhenIndexIsRelocated and
testListenersInvokedWhenIndexIsDangling fail on CI with
errors like:

java.lang.AssertionError: Expecting no shards deleted on node node_t4
at __randomizedtesting.SeedInfo.seed(...)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.elasticsearch.plugins.IndexFoldersDeletionListenerIT.
testListenersInvokedWhenIndexIsDangling
(IndexFoldersDeletionListenerIT.java:189)

This commit tries to make those tests more stable by
starting all nodes upfront, by waiting for no rebalancing/
relocations before checking the previous assertions
and by extending a bit the time of some assertBusy()
as on CI it can take more than 10 sec for pending
deletes to be processed.

tlrx added 2 commits December 17, 2020 12:05
The tests testListenersInvokedWhenIndexIsRelocated and 
testListenersInvokedWhenIndexIsDangling fail on CI with 
errors like:

java.lang.AssertionError: Expecting no shards deleted on node node_t4
	at __randomizedtesting.SeedInfo.seed(...)
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.elasticsearch.plugins.IndexFoldersDeletionListenerIT.
testListenersInvokedWhenIndexIsDangling
(IndexFoldersDeletionListenerIT.java:189)

This commit tries to make those tests more stable by 
starting all nodes upfront, by waiting for no rebalancing/
relocations before checking the previous assertions 
and by extending a bit the time of some assertBusy() 
as on CI it can take more than 10 sec for pending 
deletes to be processed.
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport v7.11.1 labels Dec 17, 2020
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Dec 17, 2020
@elasticmachine
Copy link
Collaborator

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

@tlrx tlrx merged commit 4886628 into elastic:7.11 Dec 17, 2020
@tlrx tlrx deleted the fix-IndexFoldersDeletionListenerIT-7.11 branch December 17, 2020 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.11.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants