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

Skip LEADER messages when there are leader only shards

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 7.1, master (8.0)
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      For shards which have 1 replica ( leader ) we know it doesn't need to recover from anyone. We should short-circuit the recovery process in this case.

      The motivation for this being that we will generate less state events and be able to mark these replicas as active again without it needing to go into 'recovering' state.

      We already short circuit when you set -Dsolrcloud.skip.autorecovery=true but that sys prop was meant for tests only. Extending this to make sure the code short-circuits when the core knows its the only replica in the shard is the motivation of the Jira.

        Attachments

        1. SOLR-10285.patch
          8 kB
          Cao Manh Dat
        2. SOLR-10285.patch
          8 kB
          Cao Manh Dat
        3. SOLR-10285.patch
          6 kB
          Joshua Humphries

          Issue Links

            Activity

              People

              • Assignee:
                caomanhdat Cao Manh Dat
                Reporter:
                varunthacker Varun Thacker
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: