diff --git a/core/src/main/java/org/elasticsearch/bootstrap/Security.java b/core/src/main/java/org/elasticsearch/bootstrap/Security.java index 496ff7b1b6a..6bd000e37e4 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/Security.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/Security.java @@ -87,6 +87,11 @@ final class Security { for (Map.Entry e : SPECIAL_JARS.entrySet()) { if (e.getKey().matcher(url.getPath()).matches()) { String prop = e.getValue(); + // TODO: we need to fix plugins to not include duplicate e.g. lucene-core jars, + // to add back this safety check! see https://github.com/elastic/elasticsearch/issues/11647 + // if (System.getProperty(prop) != null) { + // throw new IllegalStateException("property: " + prop + " is unexpectedly set: " + System.getProperty(prop)); + //} System.setProperty(prop, url.toString()); } }