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 5f58561 commit 6e3dd14
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ public Settings onNodeStopped(String nodeName) throws Exception {
.build();
}
});
ensureGreen(restoredAgainIndex);

ensureGreen("restored-*");

logger.info("--> shards of [{}] should start without downloading bytes from the blob store", restoredAgainIndex);
checkNoBlobStoreAccess(useSoftDeletes);
Expand Down

0 comments on commit 6e3dd14

Please sign in to comment.