File tree 2 files changed +4
-4
lines changed
internalClusterTest/java/org/opensearch/snapshots
main/java/org/opensearch/index/mapper
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ public void testRestoreWithDifferentMappingsAndSettings() throws Exception {
312
312
Settings .builder ()
313
313
.put (indexSettings ())
314
314
.put (SETTING_NUMBER_OF_REPLICAS , between (0 , 1 ))
315
- .put ("index.mapper.dynamic" , true )
315
+ // .put("index.mapper.dynamic", true)
316
316
.put ("refresh_interval" , 10 , TimeUnit .SECONDS )
317
317
)
318
318
);
Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ public MapperService(
260
260
this .mapperRegistry = mapperRegistry ;
261
261
this .idFieldDataEnabled = idFieldDataEnabled ;
262
262
263
- // if (INDEX_MAPPER_DYNAMIC_SETTING.exists(indexSettings.getSettings())) {
264
- // throw new IllegalArgumentException("Setting " + INDEX_MAPPER_DYNAMIC_SETTING.getKey() + " was removed after version 6.0.0");
265
- // }
263
+ if (INDEX_MAPPER_DYNAMIC_SETTING .exists (indexSettings .getSettings ())) {
264
+ throw new IllegalArgumentException ("Setting " + INDEX_MAPPER_DYNAMIC_SETTING .getKey () + " was removed after version 6.0.0" );
265
+ }
266
266
}
267
267
268
268
public boolean hasNested () {
You can’t perform that action at this time.
0 commit comments