[7.x] Prohibit freezing the write index of a data stream (#58168)
This commit is contained in:
parent
1e235a7f55
commit
7079a3b09f
|
@ -132,3 +132,41 @@
|
||||||
foo: hello
|
foo: hello
|
||||||
|
|
||||||
- match: {hits.total: 1}
|
- match: {hits.total: 1}
|
||||||
|
|
||||||
|
---
|
||||||
|
"Cannot freeze write index for data stream":
|
||||||
|
- skip:
|
||||||
|
version: " - 7.99.99"
|
||||||
|
reason: "change to 7.8.99 after backporting"
|
||||||
|
features: allowed_warnings
|
||||||
|
|
||||||
|
- do:
|
||||||
|
allowed_warnings:
|
||||||
|
- "index template [my-template1] has index patterns [simple-data-stream1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template1] will take precedence during new index creation"
|
||||||
|
indices.put_index_template:
|
||||||
|
name: my-template1
|
||||||
|
body:
|
||||||
|
index_patterns: [simple-data-stream1]
|
||||||
|
template:
|
||||||
|
mappings:
|
||||||
|
properties:
|
||||||
|
'@timestamp':
|
||||||
|
type: date
|
||||||
|
data_stream:
|
||||||
|
timestamp_field: '@timestamp'
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.create_data_stream:
|
||||||
|
name: simple-data-stream1
|
||||||
|
- is_true: acknowledged
|
||||||
|
|
||||||
|
- do:
|
||||||
|
catch: bad_request
|
||||||
|
indices.freeze:
|
||||||
|
index: ".ds-simple-data-stream1-000001"
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.delete_data_stream:
|
||||||
|
name: simple-data-stream1
|
||||||
|
- is_true: acknowledged
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue