Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-696

Double leader for LeaderLatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.4.0, 5.5.0
    • 5.7.0
    • None
    • None

    Description

      When I use the LeaderLatch to select leader, there is a double-leader phenomenon.
      The timeline is as follows:

      1.A client connected and set its leader status to true

      2.zk offline until the session with the A client expires

      3.zk online,A client Reconnected and set its leader status to true with old path

      4.zk delete old path(A client)because of expires

      5.A client cannot perceive that its node has been deleted,continues to believe that it is the leader

      6.B client connected,due to zk's node being empty, set its leader status to true

      7.now A client and B client are the leader at the same time
       
      It seems that due to CURATOR-644 and CURATOR-645

      Attachments

        Activity

          People

            tison Zili Chen
            lurna lurna
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: