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

Order of createNodeList should be respected during collection creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.10.2
    • None
    • None
    • None

    Description

      When you use the collection api to create a new collection and you specify the "createNodeList" attribute to the CREATE command it does not preserve the ordering of the node list and thus does not produce a predictable pattern.

      Use case: I want to create a collection with 12 shards (maxShardsPerNode == 4 and I have 3 servers and I specify createNodeList=server1,server2,server3..

      I'd expect to get:

      server1 : shard1,shard4,shard7,shard10
      server2 : shard2,shard5,shard8,shard11
      server3 : shard3,shard6,shard9,shard12

      But what you often get is something not that because the list order isn't respected so you might get:

      server1 : shard1,shard4,shard7,shard10
      server2 : shard3,shard6,shard9,shard12
      server3 : shard2,shard5,shard8,shard11

      Anyway.. Easy to fix.. patch attached..

      Attachments

        1. SOLR-6877.patch
          1 kB
          Steven Bower

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              sbower Steven Bower
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: