[7.x] Prohibit freezing the write index of a data stream (#58168)

This commit is contained in:
Dan Hermann 2020-06-16 09:37:32 -05:00 committed by GitHub
parent 1e235a7f55
commit 7079a3b09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 38 additions and 0 deletions

View File

@ -132,3 +132,41 @@
foo: hello
- 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