Skip to content

Commit fcba65a

Browse files
committed
Avoid shard relocations in refresh yaml tests (#69095)
If shard relocations happen then a search can be executed by a relocated shard. Closes #68562
1 parent 555bd65 commit fcba65a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/create/60_refresh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
settings:
1111
index.refresh_interval: -1
1212
number_of_replicas: 0
13+
# make sure that we don't have shard relocations; otherwise search can be executed by a relocated shard
14+
routing.rebalance.enable: none
1315
- do:
1416
create:
1517
index: test_1

rest-api-spec/src/main/resources/rest-api-spec/test/delete/50_refresh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
number_of_shards: 5
1515
number_of_routing_shards: 5
1616
number_of_replicas: 0
17+
# make sure that we don't have shard relocations; otherwise search can be executed by a relocated shard
18+
routing.rebalance.enable: none
1719
- do:
1820
cluster.health:
1921
wait_for_status: green

0 commit comments

Comments
 (0)