10
10
import org .apache .http .entity .StringEntity ;
11
11
import org .apache .logging .log4j .LogManager ;
12
12
import org .apache .logging .log4j .Logger ;
13
- import org .apache .lucene .util .LuceneTestCase ;
14
13
import org .elasticsearch .client .Request ;
15
14
import org .elasticsearch .client .Response ;
16
15
import org .elasticsearch .client .ResponseException ;
76
75
import static org .hamcrest .Matchers .not ;
77
76
import static org .hamcrest .Matchers .nullValue ;
78
77
79
- @ LuceneTestCase .AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/53738" )
80
78
public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
81
79
private static final Logger logger = LogManager .getLogger (TimeSeriesLifecycleActionsIT .class );
82
80
private static final String FAILED_STEP_RETRY_COUNT_FIELD = "failed_step_retry_count" ;
@@ -96,7 +94,7 @@ public void refreshIndex() {
96
94
public static void updatePolicy (String indexName , String policy ) throws IOException {
97
95
Request changePolicyRequest = new Request ("PUT" , "/" + indexName + "/_settings" );
98
96
final StringEntity changePolicyEntity = new StringEntity ("{ \" index.lifecycle.name\" : \" " + policy + "\" }" ,
99
- ContentType .APPLICATION_JSON );
97
+ ContentType .APPLICATION_JSON );
100
98
changePolicyRequest .setEntity (changePolicyEntity );
101
99
assertOK (client ().performRequest (changePolicyRequest ));
102
100
}
@@ -657,9 +655,9 @@ public void testSetSingleNodeAllocationRetriesUntilItSucceeds() throws Exception
657
655
createIndexWithSettings (index , Settings .builder ().put (IndexMetaData .SETTING_NUMBER_OF_SHARDS , numShards )
658
656
.put (IndexMetaData .SETTING_NUMBER_OF_REPLICAS , 0 ));
659
657
660
- ensureGreen (index );
658
+ ensureGreen (index );
661
659
662
- // unallocate all index shards
660
+ // unallocate all index shards
663
661
Request setAllocationToMissingAttribute = new Request ("PUT" , "/" + index + "/_settings" );
664
662
setAllocationToMissingAttribute .setJsonEntity ("{\n " +
665
663
" \" settings\" : {\n " +
@@ -1337,8 +1335,8 @@ public void testWaitForActiveShardsStep() throws Exception {
1337
1335
String originalIndex = index + "-000001" ;
1338
1336
String secondIndex = index + "-000002" ;
1339
1337
createIndexWithSettings (originalIndex , Settings .builder ().put (IndexMetaData .SETTING_NUMBER_OF_SHARDS , 1 )
1340
- .put (IndexMetaData .SETTING_NUMBER_OF_REPLICAS , 0 )
1341
- .put (RolloverAction .LIFECYCLE_ROLLOVER_ALIAS , alias ),
1338
+ .put (IndexMetaData .SETTING_NUMBER_OF_REPLICAS , 0 )
1339
+ .put (RolloverAction .LIFECYCLE_ROLLOVER_ALIAS , alias ),
1342
1340
true );
1343
1341
1344
1342
// create policy
@@ -1815,7 +1813,7 @@ private void createSlmPolicy(String smlPolicy, String repo) throws IOException {
1815
1813
.field ("repository" , repo )
1816
1814
.field ("name" , "snap" + randomAlphaOfLengthBetween (5 , 10 ).toLowerCase (Locale .ROOT ))
1817
1815
.startObject ("config" )
1818
- .field ("include_global_state" , false )
1816
+ .field ("include_global_state" , false )
1819
1817
.endObject ()
1820
1818
.endObject ()));
1821
1819
0 commit comments