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

Skip LEADER messages when there are leader only shards

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • 7.1, 8.0
    • None
    • 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
          6 kB
          Joshua Humphries
        2. SOLR-10285.patch
          8 kB
          Cao Manh Dat
        3. SOLR-10285.patch
          8 kB
          Cao Manh Dat

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            caomanhdat Cao Manh Dat
            varun Varun Thacker
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment