From 7ddf540e69a48aaa3972ecf55c20c9b9b03e7533 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 937cf31df149a..9a593b770cb4c 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java +++ b/test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java @@ -1287,7 +1287,7 @@ private void assertNoSnapshottedIndexCommit() throws Exception { } } } - }); + }, 60, TimeUnit.SECONDS); } /**