TSDB: Make time boundaries settings required in tsdb indices (#81146)

Make `index.time_series.start_time` and `index.time_series.end_time` settings as required settings in tsdb indices.

It will change many tests, among which a time_series index is created, and it will add the `index.time_series.start_time` and `index.time_series.end_time` settings
This commit is contained in:
weizijun 2021-12-02 06:53:49 +08:00 committed by GitHub
parent f9421e4552
commit 2f855aac88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 274 additions and 153 deletions

View file

@ -2,8 +2,8 @@
setup:
# Create a local tsdb index with a tsid the doesn't overlap with the remote cluster.
- skip:
version: " - 7.99.99"
reason: introduced in 8.0.0
version: " - 8.0.99"
reason: introduced in 8.1.0
- do:
indices.create:
@ -13,6 +13,9 @@ setup:
index:
mode: time_series
routing_path: [metricset, k8s.pod.uid]
time_series:
start_time: 2021-04-28T00:00:00Z
end_time: 2021-04-29T00:00:00Z
number_of_replicas: 0
number_of_shards: 2
mappings:

View file

@ -156,8 +156,8 @@
---
tsdb:
- skip:
version: " - 7.99.99"
reason: introduced in 8.0.0
version: " - 8.0.99"
reason: introduced in 8.1.0
- do:
indices.create:
@ -167,6 +167,9 @@ tsdb:
index:
mode: time_series
routing_path: [metricset, k8s.pod.uid]
time_series:
start_time: 2021-04-28T00:00:00Z
end_time: 2021-04-29T00:00:00Z
number_of_replicas: 0
number_of_shards: 2
mappings: