SOLR-13893: fix typo in BlobRepository's max jar size sys property

* runtime.lib.size is the new property name
This commit is contained in:
Munendra S N 2020-03-28 11:53:21 +05:30
parent 132228d450
commit 1a2325a08f
2 changed files with 10 additions and 1 deletions

View File

@ -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.

View File

@ -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+");