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

misleading errors reported for CREATESHARD if new shard would exceed maxShardsPerNode

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      If I create a collection with implicit routing and, say, maxShardsPerNode=3, then start creating shards, when I create the 4th shard I get an error. So far so good. The error is very misleading though, see below.

      Saw this on a degenerate case of a single Solr instance, not sure if you get the same error on a multi-node cluster.

      <str name="Operation createshard caused exception:">
      ...... Cannot create collection eoe. No live Solr-instances
      </str>
      <lst name="exception">
      <str name="msg">Cannot create collection eoe. No live Solr-instances</str>
      <int name="rspCode">400</int>
      .
      .
      .

      Related question is I don't think there's a graceful way to increase maxShardsPerNode after the collection is created.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                erickerickson Erick Erickson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: