mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
The header indicates to how many shard copies (primary and replicas shards) a write was supposed to go to, to how many shard copies to write succeeded and potentially captures shard failures if writing into a replica shard fails. For async writes it also includes the number of shards a write is still pending. Closes #7994
37 lines
717 B
YAML
37 lines
717 B
YAML
---
|
|
"Delete check shard header":
|
|
|
|
- do:
|
|
indices.create:
|
|
index: foobar
|
|
body:
|
|
settings:
|
|
number_of_shards: "1"
|
|
number_of_replicas: "0"
|
|
|
|
- do:
|
|
cluster.health:
|
|
wait_for_status: green
|
|
|
|
- do:
|
|
index:
|
|
index: foobar
|
|
type: baz
|
|
id: 1
|
|
body: { foo: bar }
|
|
|
|
- do:
|
|
delete:
|
|
index: foobar
|
|
type: baz
|
|
id: 1
|
|
|
|
- match: { _index: foobar }
|
|
- match: { _type: baz }
|
|
- match: { _id: "1"}
|
|
- match: { _version: 2}
|
|
- match: { _shards.total: 1}
|
|
- match: { _shards.successful: 1}
|
|
- match: { _shards.failed: 0}
|
|
- is_false: _shards.pending
|