Skip to content

Commit 316eaa1

Browse files
authored
Fix testBlobStoreCache (#79747) (#79887)
The attempt to fix this test in #78616 wasn't complete: we need to wait for all mounted indices, not only the last restored one, before deleting the indices. Otherwise one of the mounted index might still be initializing and recreates the cached documents in `.snapshot-blob-cache` Closes #78993
1 parent b58f5fe commit 316eaa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/cache/blob/SearchableSnapshotsBlobStoreCacheIntegTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ public Settings onNodeStopped(String nodeName) throws Exception {
304304
.build();
305305
}
306306
});
307-
ensureGreen(restoredAgainIndex);
307+
308+
ensureGreen("restored-*");
308309

309310
assertRecoveryStats(restoredAgainIndex, false);
310311
assertExecutorIsIdle(SearchableSnapshots.CACHE_FETCH_ASYNC_THREAD_POOL_NAME);

0 commit comments

Comments
 (0)