From 5c98c506ed9c5d7c7c0f6b49e33730af03bb8377 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Fri, 22 Nov 2019 08:51:00 -0500 Subject: [PATCH] Increase timeout while checking for no snapshotted commit (#49461) If some replica is performing a file-based recovery, then the check assertNoSnapshottedIndexCommit would fail. We should increase the timeout for this check so that we can wait until all recoveries done or aborted. Closes #49403 --- .../main/java/org/elasticsearch/test/InternalTestCluster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java b/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java index ccf1fcb0b01b7..11bf4539facac 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java +++ b/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java @@ -1370,7 +1370,7 @@ private void assertNoSnapshottedIndexCommit() throws Exception { } } } - }); + }, 60, TimeUnit.SECONDS); } /**