Skip to content

Commit 6e9ccda

Browse files
committed
ilm test - allow more time for policy completion (elastic#43844)
1 parent 0a79f4c commit 6e9ccda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.io.IOException;
2929
import java.util.HashMap;
3030
import java.util.Map;
31+
import java.util.concurrent.TimeUnit;
3132

3233
import static java.util.Collections.singletonMap;
3334
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
@@ -44,10 +45,10 @@ public class ChangePolicyforIndexIT extends ESRestTestCase {
4445
* to rollover and a warm phase with an impossible allocation action. The
4546
* second policy has a rollover action requiring 1000 document and a warm
4647
* phase that moves the index to known nodes that will succeed. An index is
47-
* created with the fiorst policy set and the test ensures the policy is in
48+
* created with the first policy set and the test ensures the policy is in
4849
* the rollover step. It then changes the policy for the index to the second
4950
* policy. It indexes a single document and checks that the index moves past
50-
* the hot phase and through the warm phasee (proving the hot phase
51+
* the hot phase and through the warm phase (proving the hot phase
5152
* definition from the first policy was used) and then checks the allocation
5253
* settings from the second policy are set ont he index (proving the second
5354
* policy was used for the warm phase)
@@ -112,7 +113,7 @@ public void testChangePolicyForIndex() throws Exception {
112113
assertOK(client().performRequest(request));
113114

114115
// Check the index goes to the warm phase and completes
115-
assertBusy(() -> assertStep(indexName, TerminalPolicyStep.KEY));
116+
assertBusy(() -> assertStep(indexName, TerminalPolicyStep.KEY), 30, TimeUnit.SECONDS);
116117

117118
// Check index is allocated on integTest-1 and integTest-2 as per policy_2
118119
Request getSettingsRequest = new Request("GET", "/" + indexName + "/_settings");

0 commit comments

Comments
 (0)