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

Make sub shard replica recovery and shard state switch asynchronous

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Currently the shard split command waits for all replicas of all sub shards to recover and then switches the state of parent to inactive and sub-shards to active.

      The problem is that shard split (ab)uses the CoreAdmin WaitForState action to ask the sub shard leader to wait until the replica states are active. This action is prone to timeout.

      We should make the shard state switching asynchronous. Once all replicas of all sub-shards are 'active', the shard states should be switched automatically.

        Attachments

        1. SOLR-5324.patch
          23 kB
          Shalin Shekhar Mangar
        2. SOLR-5324.patch
          23 kB
          Shalin Shekhar Mangar
        3. SOLR-5324.patch
          25 kB
          Shalin Shekhar Mangar
        4. SOLR-5324.patch
          25 kB
          Shalin Shekhar Mangar

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: