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

Incorrect shard placement during Collection creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.6, 7.7
    • None
    • SolrCloud
    • None

    Description

      TL;DR; createNodeSet & shards combination is not being respected.

      I'm attempting to create a collection with multiple shards, but
      apparently the value of createNodeSet is not being respected and shards
      are being assigned to nodes seemingly at random.

      createNodeSet.shuffle is set to false, so that's not the cause.
      Furthermore, sometimes not all nodes in the request are used.

      Here's the create request, cleaned up for legibility. Note that the node names
      are IP addresses but I've removed the first 3 octets for legibility.

      admin/collections
      ?action=CREATE
      &name=collectionName
      &router.name=implicit
      &shards=collectionName1,collectionName2,collectionName3,collectionName4,collectionName5,collectionName6
      &maxShardsPerNode=1024
      &collection.configName=some_config
      &createNodeSet=171:8180_solr,172:8180_solr,173:8180_solr,177:8180_solr,179:8180_solr,179:8180_solr
      &createNodeSet.shuffle=false
      &waitForFinalState=true

      Note that I'm creating a collection with 6 shards across 5 nodes.

      Requested:
      collectionName1: 171:8180_solr
      collectionName2: 172:8180_solr
      collectionName3: 173:8180_solr
      collectionName4: 177:8180_solr
      collectionName5: 179:8180_solr
      collectionName6: 179:8180_solr

      Actual:
      collectionName1: 177:8180_solr
      collectionName2: 172:8180_solr
      collectionName3: 179:8180_solr
      collectionName4: 173:8180_solr
      collectionName5: 171:8180_solr
      collectionName6: 171:8180_solr

      Not a single shard ends up on the requested node.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bvd Bram VD
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: