diff --git a/src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java b/src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java index c6542fc0cf..30332c8603 100644 --- a/src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java +++ b/src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java @@ -382,8 +382,9 @@ public Builder extectedNodeStartupCount(int expectedNodeStartupCount) { } public Builder nodeSettings(Map settings) { - settings.put("monitor.fs.health.enabled", false); - settings.forEach((key, value) -> { + HashMap settingsCopy = new HashMap<>(settings); + settingsCopy.put("monitor.fs.health.enabled", false); + settingsCopy.forEach((key, value) -> { if (value instanceof List) { List values = ((List) value).stream().map(String::valueOf).collect(Collectors.toList()); nodeOverrideSettingsBuilder.putList(key, values);