File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
src/yamlRestTest/resources/rest-api-spec/test/indices.create
internalClusterTest/java/org/elasticsearch/index
main/java/org/elasticsearch/index Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -85,4 +85,6 @@ tasks.named("yamlRestCompatTestTransform").configure ({ task ->
85
85
task. skipTest(" search.vectors/110_knn_query_with_filter/PRE_FILTER: pre-filter across multiple aliases" , " waiting for #118774 backport" )
86
86
task. skipTest(" search.vectors/160_knn_query_missing_params/kNN search in a dis_max query - missing num_candidates" , " waiting for #118774 backport" )
87
87
task. skipTest(" search.highlight/30_max_analyzed_offset/Plain highlighter with max_analyzed_offset < 0 should FAIL" , " semantics of test has changed" )
88
+ task. skipTest(" indices.create/10_basic/Create lookup index" , " default auto_expand_replicas was removed" )
89
+ task. skipTest(" indices.create/10_basic/Create lookup index with one shard" , " default auto_expand_replicas was removed" )
88
90
})
Original file line number Diff line number Diff line change 171
171
index : test_lookup
172
172
173
173
- match : { test_lookup.settings.index.number_of_shards: "1"}
174
- - match : { test_lookup.settings.index.auto_expand_replicas: "0-all"}
175
174
176
175
---
177
176
" Create lookup index with one shard " :
196
195
index : test_lookup
197
196
198
197
- match : { test_lookup.settings.index.number_of_shards: "1"}
199
- - match : { test_lookup.settings.index.auto_expand_replicas: "0-all"}
200
198
201
199
---
202
200
" Create lookup index with two shards " :
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public void testBasic() {
49
49
assertAcked (client ().admin ().indices ().execute (TransportCreateIndexAction .TYPE , createRequest ));
50
50
Settings settings = client ().admin ().indices ().prepareGetSettings ("hosts" ).get ().getIndexToSettings ().get ("hosts" );
51
51
assertThat (settings .get ("index.mode" ), equalTo ("lookup" ));
52
- assertThat (settings .get ("index.auto_expand_replicas" ), equalTo ( "0-all " ));
52
+ assertNull (settings .get ("index.auto_expand_replicas" ));
53
53
Map <String , String > allHosts = Map .of (
54
54
"192.168.1.2" ,
55
55
"Windows" ,
@@ -141,7 +141,6 @@ public void testResizeLookupIndex() {
141
141
Settings settings = client ().admin ().indices ().prepareGetSettings ("lookup-2" ).get ().getIndexToSettings ().get ("lookup-2" );
142
142
assertThat (settings .get ("index.mode" ), equalTo ("lookup" ));
143
143
assertThat (settings .get ("index.number_of_shards" ), equalTo ("1" ));
144
- assertThat (settings .get ("index.auto_expand_replicas" ), equalTo ("0-all" ));
145
144
146
145
ResizeRequest split = new ResizeRequest ("lookup-3" , "lookup-1" );
147
146
split .setResizeType (ResizeType .SPLIT );
Original file line number Diff line number Diff line change @@ -623,10 +623,7 @@ public Settings getAdditionalIndexSettings(
623
623
}
624
624
}
625
625
if (indexMode == LOOKUP ) {
626
- return Settings .builder ()
627
- .put (IndexMetadata .SETTING_NUMBER_OF_SHARDS , 1 )
628
- .put (IndexMetadata .SETTING_AUTO_EXPAND_REPLICAS , "0-all" )
629
- .build ();
626
+ return Settings .builder ().put (IndexMetadata .SETTING_NUMBER_OF_SHARDS , 1 ).build ();
630
627
} else {
631
628
return Settings .EMPTY ;
632
629
}
You can’t perform that action at this time.
0 commit comments