Skip to content

Commit 843122c

Browse files
authored
Prevent shard relocation while closing index (#61072)
We might fail to close an index if some shards are being relocated. Close #60913
1 parent a497263 commit 843122c

File tree

1 file changed

+2
-0
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats

1 file changed

+2
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
body:
192192
settings:
193193
soft_deletes.enabled: false
194+
routing.rebalance.enable: "none" # prevents shard relocations while we are closing an index
194195
warnings:
195196
- Creating indices with soft-deletes disabled is deprecated and will be removed in future Elasticsearch versions.
196197
Please do not specify value for setting [index.soft_deletes.enabled] of index [test].
@@ -248,6 +249,7 @@
248249
body:
249250
settings:
250251
soft_deletes.enabled: true
252+
routing.rebalance.enable: "none" # prevents shard relocations while we are closing an index
251253
- do:
252254
cluster.health:
253255
wait_for_no_initializing_shards: true

0 commit comments

Comments
 (0)