You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mu...@apache.org on 2020/03/28 06:41:49 UTC

[lucene-solr] 05/05: SOLR-13893: remove deprecated runtme.lib.size sys property

This is an automated email from the ASF dual-hosted git repository.

munendrasn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 9de68117067ba41b5f94a284b0089cb009ede383
Author: Munendra S N <mu...@apache.org>
AuthorDate: Sat Mar 28 11:59:30 2020 +0530

    SOLR-13893: remove deprecated runtme.lib.size sys property
---
 solr/CHANGES.txt                                            | 3 +++
 solr/core/src/java/org/apache/solr/core/BlobRepository.java | 6 +-----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 45f1fcf..d85cc9e 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -50,6 +50,9 @@ Other Changes
 * SOLR-14322: AbstractFullDistribZkTestBase.waitForRecoveriesToFinish now takes a timeout and time unit instead of
   assuming that we are passed value in seconds. (Mike Drob)
 
+* SOLR-13893: Remove support to read BlobRepository's max jar size from deprecated `runtme.lib.size` system property
+  (Erick Erickson, Kesharee Nandan Vishwakarma, Munendra S N)
+
 ==================  8.6.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.java
index 1d4628b..d2f57a9 100644
--- a/solr/core/src/java/org/apache/solr/core/BlobRepository.java
+++ b/solr/core/src/java/org/apache/solr/core/BlobRepository.java
@@ -61,12 +61,8 @@ import static org.apache.solr.common.cloud.ZkStateReader.BASE_URL_PROP;
  */
 public class BlobRepository {
 
-  @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)));
+      System.getProperty("runtime.lib.size", String.valueOf(5 * 1024 * 1024)));
   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+");