Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-790

Last processed zxid set prematurely while establishing leadership

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2, 3.4.0
    • Component/s: quorum
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The leader code is setting the last processed zxid to the first of the new epoch even before connecting to a quorum of followers. Because the leader code sets this value before connecting to a quorum of followers (Leader.java:281) and the follower code throws an IOException (Follower.java:73) if the leader epoch is smaller, we have that when the false leader drops leadership and becomes a follower, it finds a smaller epoch and kills itself.

        Attachments

        1. ZOOKEEPER-790.patch
          1 kB
          Flavio Junqueira
        2. ZOOKEEPER-790.travis.log.bz2
          44 kB
          Travis Crawford
        3. ZOOKEEPER-790.patch
          3 kB
          Flavio Junqueira
        4. ZOOKEEPER-790.patch
          13 kB
          Flavio Junqueira
        5. ZOOKEEPER-790-3.3.patch
          12 kB
          Flavio Junqueira
        6. ZOOKEEPER-790.patch
          13 kB
          Flavio Junqueira
        7. ZOOKEEPER-790-3.3.patch
          13 kB
          Flavio Junqueira
        8. ZOOKEEPER-790.patch
          13 kB
          Flavio Junqueira
        9. ZOOKEEPER-790-follower-request-NPE.log
          16 kB
          Sergey Doroshenko
        10. ZOOKEEPER-790.v2.patch
          4 kB
          Flavio Junqueira
        11. ZOOKEEPER-790-test.patch
          10 kB
          Sergey Doroshenko
        12. ZOOKEEPER-790.v2.patch
          17 kB
          Flavio Junqueira
        13. ZOOKEEPER-790-3.3.v2.patch
          17 kB
          Flavio Junqueira
        14. ZOOKEEPER-790.v2.patch
          17 kB
          Flavio Junqueira

          Issue Links

            Activity

              People

              • Assignee:
                fpj Flavio Junqueira
                Reporter:
                fpj Flavio Junqueira
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: