Solr
  1. Solr
  2. SOLR-4797

Sub shards have wrong hash range in cluster state except when using PlainIdRouter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3
    • Fix Version/s: 4.3.1
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      The overseer collection processor always uses PlainIdRouter to partition the hash range. However, some router implementations (most notably CompositeIdRouter) can provide a different implementation to partition hash ranges. So there can be a mismatch between the hash ranges which are persisted in clusterstate.xml for sub shards and the actual index which is split using the collection's configured router impl.

      This bug does not affect collections using PlainIdRouter.

      The overseer collection processor should always use the collection's configured router to partition ranges.

      1. SOLR-4797.patch
        12 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close after 4.3.1 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close after 4.3.1 release
        Hide
        Commit Tag Bot added a comment -

        [lucene_solr_4_3 commit] shalin
        http://svn.apache.org/viewvc?view=revision&revision=1480898

        SOLR-4797: Shard splitting creates sub shards which have the wrong hash range in cluster state. This happens when numShards is not a power of two and router is compositeId

        Show
        Commit Tag Bot added a comment - [lucene_solr_4_3 commit] shalin http://svn.apache.org/viewvc?view=revision&revision=1480898 SOLR-4797 : Shard splitting creates sub shards which have the wrong hash range in cluster state. This happens when numShards is not a power of two and router is compositeId
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed on branch_4x and trunk.

        Show
        Shalin Shekhar Mangar added a comment - Committed on branch_4x and trunk.
        Hide
        Shalin Shekhar Mangar added a comment -

        Changes:

        1. Partition the range with the correct router
        2. Index docs with composite ids
        Show
        Shalin Shekhar Mangar added a comment - Changes: Partition the range with the correct router Index docs with composite ids

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development