-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 SearchableSnapshotsLicenseIntegTests.testShardAllocationOnInvalidLicense #72528
Conversation
Pinging @elastic/es-distributed (Team:Distributed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -89,6 +89,9 @@ public void createAndMountSearchableSnapshot() throws Exception { | |||
|
|||
assertAcked(client().execute(DeleteLicenseAction.INSTANCE, new DeleteLicenseRequest()).get()); | |||
assertAcked(client().execute(PostStartBasicAction.INSTANCE, new PostStartBasicRequest()).get()); | |||
|
|||
ensureClusterSizeConsistency(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I think we can do it in one line with ensureStableCluster(cluster().size())
? That seems like it's all we need here? Looks like this is a retry on the master node request I guess? (though there's no master fail-over, but maybe a connection got dropped for some reason?) ... That's my best guess :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged as is, I wanted to ensure no pending tasks on all nodes with the same cluster state everywhere.
And yes, retries might explain this. We'll see if that happens again
Thanks Armin |
…License (elastic#72528) This test fails sometimes on CI (see elastic#72329) when recreating the license. It's not clear to me why that happens but I suspect batched cluster state updates, so this pull request adds some waiting points in the test. Closes elastic#72329
This test fails sometimes on CI (see #72329) when recreating the license. It's not clear to me why that happens but I suspect batched cluster state updates, so this pull request adds some waiting points in the test.
Closes #72329