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

After a new leader is elected it, it should ensure it's state is ACTIVE if it has already registered with ZK.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      It is possible that a down replica gets elected as a leader, and that it stays down after the election.

      Here's how I hit upon this:

      • There are 3 replicas: leader, notleader0, notleader1
      • Introduced network partition to isolate notleader0, notleader1 from leader (leader puts these two in LIR via zk).
      • Kill leader, remove partition. Now leader is dead, and both of notleader0 and notleader1 are down. There is no leader.
      • Remove LIR znodes in zk.
      • Wait a while, and there happens a (flawed?) leader election.
      • Finally, the state is such that one of notleader0 or notleader1 (which were down before) become leader, but stays down.

        Attachments

        1. SOLR-8233.patch
          5 kB
          Ishan Chattopadhyaya
        2. SOLR-7989.patch
          2 kB
          Ishan Chattopadhyaya
        3. SOLR-7989.patch
          2 kB
          Ishan Chattopadhyaya
        4. SOLR-7989.patch
          3 kB
          Ishan Chattopadhyaya
        5. SOLR-7989.patch
          3 kB
          Ishan Chattopadhyaya
        6. SOLR-7989.patch
          2 kB
          Ishan Chattopadhyaya
        7. SOLR-7989.patch
          4 kB
          Mark Miller
        8. SOLR-7989.patch
          7 kB
          Mark Miller
        9. DownLeaderTest.java
          7 kB
          Ishan Chattopadhyaya
        10. DownLeaderTest.java
          7 kB
          Ishan Chattopadhyaya

          Issue Links

            Activity

              People

              • Assignee:
                markrmiller@gmail.com Mark Miller
                Reporter:
                ichattopadhyaya Ishan Chattopadhyaya
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: