|
19 | 19 |
|
20 | 20 | package org.elasticsearch.upgrades;
|
21 | 21 |
|
| 22 | +import static java.util.Collections.emptyMap; |
| 23 | +import static java.util.Collections.singletonList; |
| 24 | +import static java.util.Collections.singletonMap; |
| 25 | +import static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.SYSTEM_INDEX_ENFORCEMENT_VERSION; |
| 26 | +import static org.elasticsearch.cluster.routing.UnassignedInfo.INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING; |
| 27 | +import static org.elasticsearch.cluster.routing.allocation.decider.MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY; |
| 28 | +import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; |
| 29 | +import static org.hamcrest.Matchers.containsString; |
| 30 | +import static org.hamcrest.Matchers.equalTo; |
| 31 | +import static org.hamcrest.Matchers.greaterThan; |
| 32 | +import static org.hamcrest.Matchers.greaterThanOrEqualTo; |
| 33 | +import static org.hamcrest.Matchers.hasKey; |
| 34 | +import static org.hamcrest.Matchers.hasSize; |
| 35 | +import static org.hamcrest.Matchers.is; |
| 36 | +import static org.hamcrest.Matchers.notNullValue; |
| 37 | +import static org.hamcrest.Matchers.nullValue; |
| 38 | +import static org.hamcrest.Matchers.startsWith; |
| 39 | + |
| 40 | +import java.io.IOException; |
| 41 | +import java.util.ArrayList; |
| 42 | +import java.util.Base64; |
| 43 | +import java.util.Collection; |
| 44 | +import java.util.HashMap; |
| 45 | +import java.util.HashSet; |
| 46 | +import java.util.List; |
| 47 | +import java.util.Locale; |
| 48 | +import java.util.Map; |
| 49 | +import java.util.Set; |
| 50 | +import java.util.regex.Matcher; |
| 51 | +import java.util.regex.Pattern; |
| 52 | + |
22 | 53 | import org.apache.http.util.EntityUtils;
|
23 | 54 | import org.elasticsearch.Version;
|
24 | 55 | import org.elasticsearch.client.Request;
|
|
47 | 78 | import org.elasticsearch.test.rest.yaml.ObjectPath;
|
48 | 79 | import org.junit.Before;
|
49 | 80 |
|
50 |
| -import java.io.IOException; |
51 |
| -import java.util.ArrayList; |
52 |
| -import java.util.Base64; |
53 |
| -import java.util.Collection; |
54 |
| -import java.util.HashMap; |
55 |
| -import java.util.HashSet; |
56 |
| -import java.util.List; |
57 |
| -import java.util.Locale; |
58 |
| -import java.util.Map; |
59 |
| -import java.util.Set; |
60 |
| -import java.util.regex.Matcher; |
61 |
| -import java.util.regex.Pattern; |
62 |
| - |
63 |
| -import static java.util.Collections.emptyMap; |
64 |
| -import static java.util.Collections.singletonList; |
65 |
| -import static java.util.Collections.singletonMap; |
66 |
| -import static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.SYSTEM_INDEX_ENFORCEMENT_VERSION; |
67 |
| -import static org.elasticsearch.cluster.routing.UnassignedInfo.INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING; |
68 |
| -import static org.elasticsearch.cluster.routing.allocation.decider.MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY; |
69 |
| -import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder; |
70 |
| -import static org.hamcrest.Matchers.containsString; |
71 |
| -import static org.hamcrest.Matchers.equalTo; |
72 |
| -import static org.hamcrest.Matchers.greaterThan; |
73 |
| -import static org.hamcrest.Matchers.greaterThanOrEqualTo; |
74 |
| -import static org.hamcrest.Matchers.hasKey; |
75 |
| -import static org.hamcrest.Matchers.hasSize; |
76 |
| -import static org.hamcrest.Matchers.is; |
77 |
| -import static org.hamcrest.Matchers.notNullValue; |
78 |
| -import static org.hamcrest.Matchers.nullValue; |
79 |
| -import static org.hamcrest.Matchers.startsWith; |
80 |
| - |
81 | 81 | /**
|
82 | 82 | * Tests to run before and after a full cluster restart. This is run twice,
|
83 | 83 | * one with {@code tests.is_old_cluster} set to {@code true} against a cluster
|
@@ -1421,6 +1421,7 @@ public void testTurnOffTranslogRetentionAfterUpgraded() throws Exception {
|
1421 | 1421 | }
|
1422 | 1422 | }
|
1423 | 1423 |
|
| 1424 | + @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/66631") |
1424 | 1425 | public void testRecoveryWithTranslogRetentionDisabled() throws Exception {
|
1425 | 1426 | if (isRunningAgainstOldCluster()) {
|
1426 | 1427 | final Settings.Builder settings = Settings.builder()
|
|
0 commit comments