Skip to content

Commit 494aeb2

Browse files
Updating test to skip time series check if index mode is standard
1 parent 10c2e46 commit 494aeb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/test/java/org/elasticsearch/index/mapper/MapperServiceTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.common.bytes.BytesReference;
1616
import org.elasticsearch.common.compress.CompressedXContent;
1717
import org.elasticsearch.common.settings.Settings;
18+
import org.elasticsearch.index.IndexMode;
1819
import org.elasticsearch.index.IndexVersion;
1920
import org.elasticsearch.index.IndexVersions;
2021
import org.elasticsearch.index.mapper.MapperService.MergeReason;
@@ -313,6 +314,9 @@ public void testIsMetadataField() throws IOException {
313314
if (NestedPathFieldMapper.NAME.equals(builtIn) && version.before(IndexVersions.V_8_0_0)) {
314315
continue; // Nested field does not exist in the 7x line
315316
}
317+
if (mapperService.getIndexSettings().getMode() == IndexMode.STANDARD && (builtIn.equals("_tsid") || builtIn.equals("_ts_routing_hash"))) {
318+
continue; // both these fields are not available in Standard index mode
319+
}
316320
assertTrue("Expected " + builtIn + " to be a metadata field for version " + version, mapperService.isMetadataField(builtIn));
317321
}
318322
}

0 commit comments

Comments
 (0)