-
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 test create and restore searchable snapshot #89745
Fix test create and restore searchable snapshot #89745
Conversation
); | ||
assertTrue("Translog doesn't exist", translogExists); | ||
assertThat("Translog should exist", translogExists, is(true)); |
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.
Above rewords assertions messages to remove negation
@@ -254,7 +255,7 @@ public void testCreateAndRestoreSearchableSnapshot() throws Exception { | |||
assertSearchableSnapshotStats(restoredIndexName, cacheEnabled, nonCachedExtensions); | |||
|
|||
ensureGreen(restoredIndexName); | |||
assertBusy(() -> assertShardFolders(restoredIndexName, true)); | |||
assertBusy(() -> assertShardFolders(restoredIndexName, true), 30, TimeUnit.SECONDS); |
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.
This is consistent with another change: #84942
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.
It looks like this reproduces only if we close the index (eg index files are kept on the disk) and we reuse the same index name for the mounted index. This is likely resulting in files not cleaned in time.
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
Related to: #89687