forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into followup-rerroute-priority
Signed-off-by: Rishab Nahata <[email protected]>
- Loading branch information
Showing
54 changed files
with
1,520 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ BWC_VERSION: | |
- "2.17.1" | ||
- "2.17.2" | ||
- "2.18.0" | ||
- "2.19.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...rc/main/resources/rest-api-spec/test/indices.get_settings/40_number_of_routing_shards.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
setup: | ||
- do: | ||
indices.create: | ||
body: | ||
settings: | ||
index: | ||
number_of_routing_shards: 4 | ||
number_of_shards: 2 | ||
number_of_replicas: 1 | ||
index: test-index | ||
|
||
- do: | ||
indices.create: | ||
body: | ||
settings: | ||
index: | ||
number_of_shards: 2 | ||
number_of_replicas: 1 | ||
index: test-index1 | ||
|
||
--- | ||
Test retrieval of number_routing_shards settings: | ||
- skip: | ||
version: " - 2.18.99" | ||
reason: "introduced in 2.19.0" | ||
- do: | ||
indices.get_settings: | ||
flat_settings: true | ||
index: test-index | ||
# show `index.number_of_routing_shards` if it was explicitly set when creating | ||
- match: | ||
test-index.settings.index\.number_of_routing_shards: "4" | ||
|
||
- do: | ||
indices.get_settings: | ||
flat_settings: true | ||
index: test-index1 | ||
# do not show `index.number_of_routing_shards` if it was not explicitly set when creating | ||
- match: | ||
test-index1.settings.index\.number_of_routing_shards: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.