Skip to content

Commit 15702d0

Browse files
[7.x] Fix DataTiersMigrationsTests.testIndexDataTierMigration (#63357) (#63510)
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
1 parent 296dc0e commit 15702d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/ilm/src/internalClusterTest/java/org/elasticsearch/xpack/ilm/DataTiersMigrationsTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void testIndexDataTierMigration() throws Exception {
142142
IndexLifecycleExplainResponse indexLifecycleExplainResponse = explainResponse.getIndexResponses().get(managedIndex);
143143
assertThat(indexLifecycleExplainResponse.getPhase(), is("warm"));
144144
assertThat(indexLifecycleExplainResponse.getStep(), is(DataTierMigrationRoutedStep.NAME));
145-
});
145+
}, 30, TimeUnit.SECONDS);
146146

147147
logger.info("starting a warm data node");
148148
internalCluster().startNode(warmNode(Settings.EMPTY));
@@ -154,7 +154,7 @@ public void testIndexDataTierMigration() throws Exception {
154154
IndexLifecycleExplainResponse indexLifecycleExplainResponse = explainResponse.getIndexResponses().get(managedIndex);
155155
assertThat(indexLifecycleExplainResponse.getPhase(), is("cold"));
156156
assertThat(indexLifecycleExplainResponse.getStep(), is(DataTierMigrationRoutedStep.NAME));
157-
});
157+
}, 30, TimeUnit.SECONDS);
158158

159159
logger.info("starting a cold data node");
160160
internalCluster().startNode(coldNode(Settings.EMPTY));
@@ -168,7 +168,7 @@ public void testIndexDataTierMigration() throws Exception {
168168
IndexLifecycleExplainResponse indexLifecycleExplainResponse = explainResponse.getIndexResponses().get(managedIndex);
169169
assertThat(indexLifecycleExplainResponse.getPhase(), is("cold"));
170170
assertThat(indexLifecycleExplainResponse.getStep(), is("complete"));
171-
});
171+
}, 30, TimeUnit.SECONDS);
172172
}
173173

174174
public void testUserOptsOutOfTierMigration() throws Exception {

0 commit comments

Comments
 (0)