Skip to content

Commit 1c299fd

Browse files
authored
Synonyms test fix - update number of shards (#116224) (#116609)
(cherry picked from commit e594072)
1 parent c8134bf commit 1c299fd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
settings:
3535
index:
3636
number_of_shards: 1
37-
number_of_replicas: 0
3837
analysis:
3938
filter:
4039
my_synonym_filter:
@@ -68,7 +67,6 @@
6867
settings:
6968
index:
7069
number_of_shards: 1
71-
number_of_replicas: 0
7270
analysis:
7371
filter:
7472
my_synonym_filter:
@@ -95,7 +93,6 @@
9593
- '{"index": {"_index": "my_index2", "_id": "2"}}'
9694
- '{"my_field": "goodbye"}'
9795

98-
9996
# An update of synonyms_set1 must trigger auto-reloading of analyzers only for synonyms_set1
10097
- do:
10198
synonyms.put_synonym:
@@ -105,8 +102,9 @@
105102
- synonyms: "hello, salute"
106103
- synonyms: "ciao => goodbye"
107104
- match: { result: "updated" }
108-
- match: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
109-
- match: { reload_analyzers_details._shards.successful: 2 }
105+
- gt: { reload_analyzers_details._shards.total: 0 }
106+
- gt: { reload_analyzers_details._shards.successful: 0 }
107+
- match: { reload_analyzers_details._shards.failed: 0 }
110108
- length: { reload_analyzers_details.reload_details: 1 } # reload details contain only a single index
111109
- match: { reload_analyzers_details.reload_details.0.index: "my_index1" }
112110
- match: { reload_analyzers_details.reload_details.0.reloaded_analyzers.0: "my_analyzer1" }

0 commit comments

Comments
 (0)