Solr
  1. Solr
  2. SOLR-6447

bin/solr -c doesn't set numShards for collection1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.10, 6.0
    • Fix Version/s: 4.10.1, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      bin/solr -c will start Solr in cloud mode. Since collection1 includes a core.properties, it will be auto-discovered and created into a collection. So the script uses:

      -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf

      However, it's not setting -DnumShards for collection1, which results in collection1 being created using the implicit router and a null range. While we have this collection1 being auto-deployed, the script should set numShards as well so that collection1 is created correctly.

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1622733 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1622733 ]

        SOLR-6447: bin/solr should pass -DnumShards=1 for bootstrapping collection1 when starting in cloud mode

        Show
        ASF subversion and git services added a comment - Commit 1622733 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1622733 ] SOLR-6447 : bin/solr should pass -DnumShards=1 for bootstrapping collection1 when starting in cloud mode
        Hide
        ASF subversion and git services added a comment -

        Commit 1622737 from Timothy Potter in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1622737 ]

        SOLR-6447: bin/solr should pass -DnumShards=1 for bootstrapping collection1 when starting in cloud mode

        Show
        ASF subversion and git services added a comment - Commit 1622737 from Timothy Potter in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1622737 ] SOLR-6447 : bin/solr should pass -DnumShards=1 for bootstrapping collection1 when starting in cloud mode
        Hide
        ASF subversion and git services added a comment -

        Commit 1624323 from Timothy Potter in branch 'dev/branches/lucene_solr_4_10'
        [ https://svn.apache.org/r1624323 ]

        SOLR-6447: set -DnumShards=1 for collection1 when starting Solr in cloud mode using bin/solr.

        Show
        ASF subversion and git services added a comment - Commit 1624323 from Timothy Potter in branch 'dev/branches/lucene_solr_4_10' [ https://svn.apache.org/r1624323 ] SOLR-6447 : set -DnumShards=1 for collection1 when starting Solr in cloud mode using bin/solr.
        Hide
        Michael McCandless added a comment -

        Bulk close for Lucene/Solr 4.10.1 release

        Show
        Michael McCandless added a comment - Bulk close for Lucene/Solr 4.10.1 release

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Timothy Potter
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development