File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -325,20 +325,16 @@ public void testTsdbTemplatesNoKeywordFieldType() throws Exception {
325
325
}
326
326
}""" ;
327
327
var request = new TransportPutComposableIndexTemplateAction .Request ("id" );
328
+ Settings .Builder settingsBuilder = Settings .builder ()
329
+ .put ("index.mode" , "time_series" )
330
+ .put ("index.dimensions_tsid_strategy_enabled" , randomDouble () < 0.8 );
331
+ if (randomBoolean ()) {
332
+ settingsBuilder .put ("index.routing_path" , "metricset" );
333
+ }
328
334
request .indexTemplate (
329
335
ComposableIndexTemplate .builder ()
330
336
.indexPatterns (List .of ("k8s*" ))
331
- .template (
332
- new Template (
333
- Settings .builder ()
334
- .put ("index.mode" , "time_series" )
335
- .put ("index.routing_path" , randomBoolean () ? null : "metricset" )
336
- .put ("index.dimensions_tsid_strategy_enabled" , randomDouble () < 0.8 )
337
- .build (),
338
- new CompressedXContent (mappingTemplate ),
339
- null
340
- )
341
- )
337
+ .template (new Template (settingsBuilder .build (), new CompressedXContent (mappingTemplate ), null ))
342
338
.dataStreamTemplate (new ComposableIndexTemplate .DataStreamTemplate (false , false ))
343
339
.build ()
344
340
);
Original file line number Diff line number Diff line change @@ -579,9 +579,6 @@ tests:
579
579
- class : org.elasticsearch.indices.recovery.IndexRecoveryIT
580
580
method : testUsesFileBasedRecoveryIfOperationsBasedRecoveryWouldBeUnreasonable
581
581
issue : https://github.com/elastic/elasticsearch/issues/135737
582
- - class : org.elasticsearch.datastreams.TSDBIndexingIT
583
- method : testTsdbTemplatesNoKeywordFieldType
584
- issue : https://github.com/elastic/elasticsearch/issues/135746
585
582
- class : org.elasticsearch.xpack.esql.expression.function.aggregate.IncreaseTests
586
583
method : testGroupingAggregate {TestCase=<small positive doubles>}
587
584
issue : https://github.com/elastic/elasticsearch/issues/135752
You can’t perform that action at this time.
0 commit comments