You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2022/11/10 00:18:47 UTC

[solr] 01/01: remove the system property numShards

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

noble pushed a commit to branch jira/SOLR-16541-deprecate_numshards_sysprop
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 861f27e7baf8eed850e3b935f6d3b1f8453cca67
Author: Noble Paul <no...@gmail.com>
AuthorDate: Thu Nov 10 11:18:21 2022 +1100

    remove the system property numShards
---
 solr/core/src/java/org/apache/solr/cloud/ZkController.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkController.java b/solr/core/src/java/org/apache/solr/cloud/ZkController.java
index 513920f7432..4be2ec1ceeb 100644
--- a/solr/core/src/java/org/apache/solr/cloud/ZkController.java
+++ b/solr/core/src/java/org/apache/solr/cloud/ZkController.java
@@ -1699,10 +1699,6 @@ public class ZkController implements Closeable {
       log.debug("publishing state={}", state);
       // System.out.println(Thread.currentThread().getStackTrace()[3]);
       Integer numShards = cd.getCloudDescriptor().getNumShards();
-      if (numShards == null) { // XXX sys prop hack
-        log.debug("numShards not found on descriptor - reading it from system property");
-        numShards = Integer.getInteger(ZkStateReader.NUM_SHARDS_PROP);
-      }
 
       assert collection != null && collection.length() > 0;