-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix test create and restore searchable snapshot #89745
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,7 @@ | |
| import java.util.Map; | ||
| import java.util.concurrent.BrokenBarrierException; | ||
| import java.util.concurrent.CyclicBarrier; | ||
| import java.util.concurrent.TimeUnit; | ||
| import java.util.stream.Collectors; | ||
| import java.util.stream.IntStream; | ||
|
|
||
|
|
@@ -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); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is consistent with another change: #84942
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
|
||
| assertThat( | ||
| client().admin() | ||
|
|
||
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