Wait for events in translog stats tests (#46586)

When waiting for no initializing shards we also have to wait for events
when we have more than one node in the cluster. When the primary is
started, there is a short period of time, where neither the primary nor
any of the replicas are initializing.

Closes #46535
This commit is contained in:
Henning Andersen 2019-09-12 09:11:50 +02:00 committed by Henning Andersen
parent ec5592ed76
commit 1c706656c2

View File

@ -79,6 +79,7 @@
- do:
cluster.health:
wait_for_no_initializing_shards: true
wait_for_events: languid
- do:
indices.stats:
metric: [ translog ]
@ -143,6 +144,7 @@
- do:
cluster.health:
wait_for_no_initializing_shards: true
wait_for_events: languid
- do:
index:
index: test
@ -184,11 +186,8 @@
---
"Translog stats on closed indices with soft-deletes":
- skip:
version: "all"
reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/46535"
# - skip:
# version: " - 7.3.99"
# reason: "start ignoring translog retention policy with soft-deletes enabled in 7.4"
version: " - 7.3.99"
reason: "start ignoring translog retention policy with soft-deletes enabled in 7.4"
- do:
indices.create:
index: test
@ -198,6 +197,7 @@
- do:
cluster.health:
wait_for_no_initializing_shards: true
wait_for_events: languid
- do:
index:
index: test