Skip to content

Commit

Permalink
rolling upgrade should use a replica to prevent relocations while run…
Browse files Browse the repository at this point in the history
…ning a scroll

A scroll holds a reference to the shard store. If the cluster is moving shards
around that reference can prevent a shard from relocating back to node it used
to be on, causing test failures.

Closes #31827
  • Loading branch information
bleskes committed Jul 10, 2018
1 parent 4de66ba commit 27c74d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
wait_for_active_shards: all
body:
settings:
number_of_replicas: 0
# we use 1 replica to make sure we don't have shards relocating. Relocating a shard with
# a scroll on it prevents shards from moving back into a where a scroll is running (it holds the shard lock)
# see https://github.com/elastic/elasticsearch/issues/31827
number_of_replicas: 1
index.routing.allocation.include.upgraded: true

- do:
Expand Down

0 comments on commit 27c74d8

Please sign in to comment.