Skip to content

Commit f6c1e3f

Browse files
authored
[ILM][TEST] increase assertBusy timeout (#36864)
the testFullPolicy and testMoveToRolloverStep tests are very important tests, but they sometimes timeout beyond the default 10sec wait for shrink to occur. This commit increases one of the assertBusys to 20 seconds
1 parent 52d34e4 commit f6c1e3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugin/ilm/qa/multi-node/src/test/java/org/elasticsearch/xpack/indexlifecycle/TimeSeriesLifecycleActionsIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import java.util.List;
4747
import java.util.Locale;
4848
import java.util.Map;
49+
import java.util.concurrent.TimeUnit;
4950
import java.util.function.Supplier;
5051

5152
import static java.util.Collections.singletonMap;
@@ -99,7 +100,7 @@ public void testFullPolicy() throws Exception {
99100
// asserts that rollover was called
100101
assertBusy(() -> assertTrue(indexExists(secondIndex)));
101102
// asserts that shrink deleted the original index
102-
assertBusy(() -> assertFalse(indexExists(originalIndex)));
103+
assertBusy(() -> assertFalse(indexExists(originalIndex)), 20, TimeUnit.SECONDS);
103104
// asserts that the delete phase completed for the managed shrunken index
104105
assertBusy(() -> assertFalse(indexExists(shrunkenOriginalIndex)));
105106
}
@@ -177,7 +178,7 @@ public void testMoveToRolloverStep() throws Exception {
177178
// asserts that rollover was called
178179
assertBusy(() -> assertTrue(indexExists(secondIndex)));
179180
// asserts that shrink deleted the original index
180-
assertBusy(() -> assertFalse(indexExists(originalIndex)));
181+
assertBusy(() -> assertFalse(indexExists(originalIndex)), 20, TimeUnit.SECONDS);
181182
// asserts that the delete phase completed for the managed shrunken index
182183
assertBusy(() -> assertFalse(indexExists(shrunkenOriginalIndex)));
183184
}

0 commit comments

Comments
 (0)