The ILM policy for the source and shrunk indices run separately (ie. they are two separate managed indices). This fixes the test which exhibited some flakiness by allowing some time for the ILM policy for the source index to finish executing. (cherry picked from commit c78d5e8499fc5ca2ca1314f97bcc6b55ba06e2e7) Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This commit is contained in:
parent
afbc4678ae
commit
301d61a98e
|
@ -83,7 +83,7 @@ public class TimeSeriesDataStreamsIT extends ESRestTestCase {
|
|||
|
||||
assertBusy(() -> assertTrue(indexExists(shrunkenIndex)), 30, TimeUnit.SECONDS);
|
||||
assertBusy(() -> assertThat(getStepKeyForIndex(client(), shrunkenIndex), equalTo(PhaseCompleteStep.finalStep("warm").getKey())));
|
||||
assertThat("the original index must've been deleted", indexExists(backingIndexName), is(false));
|
||||
assertBusy(() -> assertThat("the original index must've been deleted", indexExists(backingIndexName), is(false)));
|
||||
}
|
||||
|
||||
public void testShrinkAfterRollover() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue