Skip to content

Fix IndexFoldersDeletionListenerIT.testListenersInvokedWhenIndexIsRelocated #66329

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
Dec 17, 2020

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Dec 15, 2020

The tests testListenersInvokedWhenIndexIsRelocated and testListenersInvokedWhenIndexIsDangling sometimes fail on CI which errors like:

java.lang.AssertionError: Expecting no shards deleted on node node_t4
	at __randomizedtesting.SeedInfo.seed([B536604547DE6AB9:5FBD64101C99F066]:0)
	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)
java.lang.AssertionError: Expecting no shards deleted on node node_t0
	at __randomizedtesting.SeedInfo.seed([C24144F2552A5F97:CB7A364FA296E5D]:0)
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.elasticsearch.plugins.IndexFoldersDeletionListenerIT.testListenersInvokedWhenIndexIsRelocated(IndexFoldersDeletionListenerIT.java:131)

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 v8.0.0 v7.11.0 labels Dec 15, 2020
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Dec 15, 2020
@elasticmachine
Copy link
Collaborator

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

@tlrx tlrx requested a review from DaveCTurner December 15, 2020 12:28
@tlrx tlrx merged commit bf96bca into elastic:master Dec 17, 2020
@tlrx
Copy link
Member Author

tlrx commented Dec 17, 2020

Thanks David

@tlrx tlrx deleted the fix-IndexFoldersDeletionListenerIT branch December 17, 2020 11:09
tlrx added a commit to tlrx/elasticsearch that referenced this pull request 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 a commit to tlrx/elasticsearch that referenced this pull request 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 a commit that referenced this pull request Dec 17, 2020
…ocated (#66329) (#66511)

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 a commit that referenced this pull request 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
: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 v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants