Skip to content

Commit 704b504

Browse files
felixbarnygmjehovich
authored andcommitted
Fix test failure by checking for feature flag (elastic#135174)
1 parent d9fedf1 commit 704b504

File tree

1 file changed

+4
-1
lines changed
  • modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams

1 file changed

+4
-1
lines changed

modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/TSDBIndexingIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ public void testTsdbTemplatesNoKeywordFieldType() throws Exception {
331331
new Template(
332332
Settings.builder()
333333
.put("index.mode", "time_series")
334-
.put("index.routing_path", randomBoolean() ? "metricset" : null)
334+
.put(
335+
"index.routing_path",
336+
randomBoolean() && INDEX_DIMENSIONS_TSID_OPTIMIZATION_FEATURE_FLAG ? null : "metricset"
337+
)
335338
.build(),
336339
new CompressedXContent(mappingTemplate),
337340
null

0 commit comments

Comments
 (0)