Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5303

numShards property is not properly taken into account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 4.2, 4.3.1
    • None
    • SolrCloud
    • SolR on 3 VMs each with an external Zookeeper, multi-core startups

    Description

      It looks like the 'numShards' argument is ignored by SolR. The number of shards is always defaulted to 1 unless cores are dynamically created with Collection API.

      I had this log :
      INFO: numShards not found on descriptor - reading it from system property, I looked for the piece of code where the log was located ((https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/ZkController.java)) and I found a possible error :

      log.info("numShards not found on descriptor - reading it from system property");
      numShards = Integer.getInteger(ZkStateReader.NUM_SHARDS_PROP);

      Attachments

        Activity

          People

            Unassigned Unassigned
            magnum87 Federico Piai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: