Closed
Description
CI Link
local
Repro line
./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=tsdb/05_dimension_and_metric_in_non_tsdb_index/nested dimensions}" -Dtests.seed=CE43030603A1AB90 -Dtests.locale=en-PH -Dtests.timezone=Asia/Aqtau -Druntime.java=17
Does it reproduce?
Yes
Applicable branches
master
Failure history
I just caused it
Failure excerpt
java.lang.AssertionError: Failure at [tsdb/05_dimension_and_metric_in_non_tsdb_index:239]: expected [2xx] status code but api [index] returned [400 Bad Request] [{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'","stack_trace":"org.elasticsearch.index.mapper.MapperParsingException: failed to parse field [nested.dim] of type [keyword] in document with id 'yF2M-n4BxnJzvZeHLUG1'. Preview of field's value: 'bar'\n\tat org.elasticsearch.index.mapper.FieldMapper.parse(FieldMapper.java:254)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:356)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseValue(DocumentParser.java:508)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:296)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:354)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:387)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseNonDynamicArray(DocumentParser.java:470)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseArray(DocumentParser.java:428)\n\tat org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:284)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:260)\n\tat org.elasticsearch.index.mapper.DocumentParser.internalParseDocument(DocumentParser.java:118)\n\tat org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:80)\n\tat org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:80)\n\tat org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:998)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:947)\n\tat org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:891)\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.executeBulkItemRequest(TransportShardBulkAction.java:320)\n\tat org.elasticsearch.action