Prevent shard relocation while closing index (#61072)

We might fail to close an index if some shards are being relocated.

Close #60913
This commit is contained in:
Nhat Nguyen 2020-08-13 10:17:48 -04:00 committed by GitHub
parent a497263c47
commit 843122ccce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,7 @@
body:
settings:
soft_deletes.enabled: false
routing.rebalance.enable: "none" # prevents shard relocations while we are closing an index
warnings:
- Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions.
Please do not specify value for setting [index.soft_deletes.enabled] of index [test].
@ -248,6 +249,7 @@
body:
settings:
soft_deletes.enabled: true
routing.rebalance.enable: "none" # prevents shard relocations while we are closing an index
- do:
cluster.health:
wait_for_no_initializing_shards: true