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

misleading errors reported for CREATESHARD if new shard would exceed maxShardsPerNode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.0
    • None
    • SolrCloud
    • 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

              Unassigned Unassigned
              erickerickson Erick Erickson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: