From b3b245e5013e7f0c733ac93a8ff1ad0dba6fc98f Mon Sep 17 00:00:00 2001 From: Ievgen Degtiarenko Date: Fri, 17 May 2024 14:37:50 +0200 Subject: [PATCH] Fix Create a snapshot spec (#108768) Prior to this change the shard might have been moved after restoring. As a result we were getting an array with 2 recoveries (SNAPSHOT and PEER). This change ensures the shard is not moved after restoring snapshot. --- .../resources/rest-api-spec/test/snapshot.restore/10_basic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml index 98b68fd4ac15..ecc6330a7312 100644 --- a/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml +++ b/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/snapshot.restore/10_basic.yml @@ -54,6 +54,9 @@ setup: repository: test_repo_restore_1 snapshot: test_snapshot_1 wait_for_completion: true + body: + "index_settings": + "index.routing.rebalance.enable": "none" - do: indices.recovery: