Skip to content

[TSDB] The routing path is not detected automatically when using a time series index. #130237

Open
@gmarouli

Description

@gmarouli

Problem Description

When a user creates a time series data stream, they do not have to specify the index.routing_path because it can be inferred from the mapping, given the mapping is specifying dimensions. However, the logic that infers this is located in a DataStreamIndexSettingsProvider which entails that it's only applied when we create a time series data streams and not when we create a stand alone time series index.

Steps to Reproduce

PUT my-ts-index
{
 "settings": {
      "index.mode": "time_series"
    },
    "mappings": {
              "properties": {
                "@timestamp": {
                  "type": "date"
                },
                "dimension": {
                  "type": "keyword",
                  "time_series_dimension": true
                },
                "counter": {
                  "type": "double",
                  "time_series_metric": "counter"
                }
              }
            }
    }
}

The above should work but now it throws an illegal argument exception, [index.mode=time_series] requires a non-empty [index.routing_path].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions