Apache Lucene open-source search software
SOLR-13893: fix typo in BlobRepository's max jar size sys property
Munendra S N1a2325a08f3f
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 95225c15c75..45f1fcf77a2 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -111,6 +111,9 @@ Other Changes* SOLR-13842: Remove redundant defaults from ImplicitPlugins.json (Munendra S N)+* SOLR-13893: BlobRepository reads max jar size from `runtime.lib.size` system property. Old `runtme.lib.size` is Deprecated+ (Erick Erickson, Kesharee Nandan Vishwakarma, Munendra S N)+================== 8.5.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.diff --git a/solr/core/src/java/org/apache/solr/core/BlobRepository.java b/solr/core/src/java/org/apache/solr/core/BlobRepository.javaindex 59bd795dea3..1d4628bee43 100644--- a/solr/core/src/java/org/apache/solr/core/BlobRepository.java+++ b/solr/core/src/java/org/apache/solr/core/BlobRepository.java@@ -60,7 +60,13 @@ import static org.apache.solr.common.cloud.ZkStateReader.BASE_URL_PROP;* The purpose of this class is to store the Jars loaded in memory and to keep only one copy of the Jar in a single node.*/public class BlobRepository {- private static final long MAX_JAR_SIZE = Long.parseLong(System.getProperty("runtme.lib.size", String.valueOf(5 * 1024 * 1024)));++ @Deprecated+ private static final long OLD_MAX_JAR_SIZE = Long.parseLong(+ System.getProperty("runtme.lib.size", String.valueOf(5 * 1024 * 1024)));++ private static final long MAX_JAR_SIZE = Long.parseLong(+ System.getProperty("runtime.lib.size", String.valueOf(OLD_MAX_JAR_SIZE)));private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());public static final Random RANDOM;static final Pattern BLOB_KEY_PATTERN_CHECKER = Pattern.compile(".*/\\d+");