From 8b36133e1e6098d3d4d65586bf80c74c0a3642ec Mon Sep 17 00:00:00 2001 From: Artem Prigoda Date: Mon, 14 Mar 2022 11:29:57 +0100 Subject: [PATCH] Increase timeout for waiting for the cleanup of the shared index folder Relates #80341 Closes 84158 --- .../FrozenSearchableSnapshotsIntegTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java b/x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java index f29aff38bc253..afd6eae9fbfeb 100644 --- a/x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java +++ b/x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/FrozenSearchableSnapshotsIntegTests.java @@ -59,6 +59,7 @@ import java.util.List; import java.util.Locale; import java.util.Map; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import static org.elasticsearch.index.IndexSettings.INDEX_SOFT_DELETES_SETTING; @@ -80,7 +81,6 @@ public class FrozenSearchableSnapshotsIntegTests extends BaseFrozenSearchableSnapshotsIntegTestCase { - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/84158") public void testCreateAndRestorePartialSearchableSnapshot() throws Exception { final String fsRepoName = randomAlphaOfLength(10); final String indexName = randomAlphaOfLength(10).toLowerCase(Locale.ROOT); @@ -304,7 +304,7 @@ public void testCreateAndRestorePartialSearchableSnapshot() throws Exception { // TODO: fix // assertSearchableSnapshotStats(restoredIndexName, true, nonCachedExtensions); ensureGreen(restoredIndexName); - assertBusy(() -> assertShardFolders(restoredIndexName, true)); + assertBusy(() -> assertShardFolders(restoredIndexName, true), 30, TimeUnit.SECONDS); assertThat( client().admin()