Skip to content

Commit

Permalink
Fix testBlobStoreCache (elastic#79747)
Browse files Browse the repository at this point in the history
The attempt to fix this test in elastic#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 elastic#78993
  • Loading branch information
tlrx committed Oct 27, 2021
1 parent b58f5fe commit 524d4c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ public Settings onNodeStopped(String nodeName) throws Exception {
.build();
}
});
ensureGreen(restoredAgainIndex);

ensureGreen("restored-*");

assertRecoveryStats(restoredAgainIndex, false);
assertExecutorIsIdle(SearchableSnapshots.CACHE_FETCH_ASYNC_THREAD_POOL_NAME);
Expand Down

0 comments on commit 524d4c2

Please sign in to comment.