Skip to content

Commit

Permalink
[TEST] wait for ILM in testRollupNonTSIndex (#107855)
Browse files Browse the repository at this point in the history
look_ahead_time is 1m, need to wait for longer than that.

Related to #103981
  • Loading branch information
kkrik-es committed Apr 24, 2024
1 parent 6290f8d commit 0ac10c9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,11 @@ public void testRollupNonTSIndex() throws Exception {
updatePolicy(client(), index, policy);

try {
assertBusy(() -> assertThat(getStepKeyForIndex(client(), index), equalTo(PhaseCompleteStep.finalStep(phaseName).getKey())));
assertBusy(
() -> assertThat(getStepKeyForIndex(client(), index), equalTo(PhaseCompleteStep.finalStep(phaseName).getKey())),
120,
TimeUnit.SECONDS
);
String rollupIndex = getRollupIndexName(client(), index, fixedInterval);
assertNull("Rollup index should not have been created", rollupIndex);
assertTrue("Source index should not have been deleted", indexExists(index));
Expand Down

0 comments on commit 0ac10c9

Please sign in to comment.