Skip to content

Invalid passthrough object the mixes dimensions and metrics fields #138044

@gmarouli

Description

@gmarouli

Elasticsearch Version

main, 9.x, 8.19

Installed Plugins

No response

Java Version

bundled

OS Version

N/A

Problem Description

It is possible to create an invalid mapping that has defined a passthrough object that is a time series dimension and one of its nested objects is a time series metric.

Reproduction steps

Create an index with the faulty mapping. Instead of receiving a 400, we get a 200.

PUT my-index-2
{
  "mappings": {
    "properties": {
      "attributes": {
          "type": "passthrough",
          "time_series_dimension": true,
          "priority": 20,
          "properties": {
            "attributes.kube_job_status_active": {
              "type": "double",
              "time_series_metric": "gauge"
            }
          }
      }
    }
  }
}

Unexpected response:

{
  "acknowledged": true,
  "shards_acknowledged": false,
  "index": "my-index-2"
}

Impact

The index needs to be deleted asap.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions