Skip to content

Commit

Permalink
Avoid shard relocations in refresh yaml tests (#69095)
Browse files Browse the repository at this point in the history
If shard relocations happen then a search can be executed by a relocated shard.

Closes #68562
  • Loading branch information
dnhatn committed Feb 18, 2021
1 parent 973f128 commit 156dde9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
settings:
index.refresh_interval: -1
number_of_replicas: 0
# make sure that we don't have shard relocations; otherwise search can be executed by a relocated shard
routing.rebalance.enable: none
- do:
create:
index: test_1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
number_of_shards: 5
number_of_routing_shards: 5
number_of_replicas: 0
# make sure that we don't have shard relocations; otherwise search can be executed by a relocated shard
routing.rebalance.enable: none
- do:
cluster.health:
wait_for_status: green
Expand Down

0 comments on commit 156dde9

Please sign in to comment.