Skip to content

Commit 2cf81d1

Browse files
committed
Restore original workflow
Signed-off-by: Peter Nied <peternied@hotmail.com>
1 parent 5c1b608 commit 2cf81d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/src/internalClusterTest/java/org/opensearch/snapshots/RestoreSnapshotIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void testRestoreWithDifferentMappingsAndSettings() throws Exception {
312312
Settings.builder()
313313
.put(indexSettings())
314314
.put(SETTING_NUMBER_OF_REPLICAS, between(0, 1))
315-
.put("index.mapper.dynamic", true)
315+
// .put("index.mapper.dynamic", true)
316316
.put("refresh_interval", 10, TimeUnit.SECONDS)
317317
)
318318
);

server/src/main/java/org/opensearch/index/mapper/MapperService.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ public MapperService(
260260
this.mapperRegistry = mapperRegistry;
261261
this.idFieldDataEnabled = idFieldDataEnabled;
262262

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+
}
266266
}
267267

268268
public boolean hasNested() {

0 commit comments

Comments
 (0)