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

Improve FORCELEADER to handle the case when a replica win the election but does not present in clusterstate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.4
    • None
    • None

    Description

      There can be the case when a replica wins the election but it does not present in clusterstate. Maybe when the Overseer sent the UNLOAD request to the LEADER (in DeleteReplicaCmd), it met some exception (therefore the request never reach the LEADER), the Overseer it that case will forcefully remove the LEADER from clusterstate.

      If a shard reaches that case, users will only see a leaderless shard and call FORCELEADER won't be able to solve their problem. Therefore FORCELEADER should be more robust, to handle such cases.

      Attachments

        1. SOLR-12176.patch
          12 kB
          Cao Manh Dat

        Activity

          People

            caomanhdat Cao Manh Dat
            caomanhdat Cao Manh Dat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: