Skip to content

Commit 8f1f10b

Browse files
authored
[9.0] Fix MergeWithFailureIT (#135447) (#135522)
Wait for the store to be closed, don't assume it happens immediately. Closes #135443
1 parent c4b8cc9 commit 8f1f10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/elasticsearch/index/engine/MergeWithFailureIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public void testFailedMergeDeadlock() throws Exception {
359359
ensureRed(indexName);
360360

361361
// verify that the shard store is effectively closed
362-
assertTrue(plugin.shardStoreClosedListener.isDone());
362+
safeGet(plugin.shardStoreClosedListener);
363363

364364
if (closingThread != null) {
365365
closingThread.join();

0 commit comments

Comments
 (0)