From 3a96f4e21d234fe9df3dcf6204393cd9e728f3ac 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 991e7f58d15ed..24714642d0074 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java +++ b/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java @@ -1377,7 +1377,7 @@ private void assertNoSnapshottedIndexCommit() throws Exception { } } } - }); + }, 60, TimeUnit.SECONDS); } /**