浏览代码

Avoid shard relocations in refresh yaml tests (#69095)

If shard relocations happen then a search can be executed by a relocated shard.

Closes #68562
Nhat Nguyen 4 年之前
父节点
当前提交
94f16cd323

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

@@ -8,6 +8,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

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

@@ -12,6 +12,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