Skip to content

Commit 19f69a7

Browse files
authored
[8.19] Fix MergeWithFailureIT (#135523)
Wait for the store to be closed, don't assume it happens immediately. Closes #135443
1 parent 7fbef51 commit 19f69a7

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
@@ -353,7 +353,7 @@ public void testFailedMergeDeadlock() throws Exception {
353353
ensureRed(indexName);
354354

355355
// verify that the shard store is effectively closed
356-
assertTrue(plugin.shardStoreClosedListener.isDone());
356+
safeGet(plugin.shardStoreClosedListener);
357357

358358
if (closingThread != null) {
359359
closingThread.join();

0 commit comments

Comments
 (0)