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

Zxid mismatch after new node becomes the leader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.8
    • None
    • None
    • None

    Description

      Adding 2 nodes to 3 nodes ensemble with the following steps:

      1. Start the new nodes (node 4, 5) and let them join the ensemble
      2. Update existing nodes' configuration (node 1, 2, 3) to add the new nodes addresses and ports
      3. Rolling restart the existing nodes
      4. Stop the current leader (node 2)
      5. New node (node 5) becomes leader

      After this, zxid in the new leader (node 5) becomes the same as the old leader (node 2).

      badai@192-168-1-129 3 % grep -i zxid logs-zk*/logs/before/*stat*
      logs-zk1/logs/before/zk-1-stat-before-crash.log:Zxid: 0xe0000050c
      logs-zk2/logs/before/zk-2-stat-before-crash.log:Zxid: 0xf00000000
      logs-zk3/logs/before/zk-3-stat-before-crash.log:Zxid: 0xe0000050c
      logs-zk4/logs/before/zk-4-stat-before-crash.log:Zxid: 0xe0000050c
      logs-zk5/logs/before/zk-5-stat-before-crash.log:Zxid: 0xf00000000
      badai@192-168-1-129 3 %
      

      Please ignore the "before" wording on the logs name as they are irrelevant.

      Attachments

        1. logs-zk5.tar.gz
          6 kB
          Badai Aqrandista
        2. logs-zk4.tar.gz
          10 kB
          Badai Aqrandista
        3. logs-zk3.tar.gz
          7 kB
          Badai Aqrandista
        4. logs-zk2.tar.gz
          6 kB
          Badai Aqrandista
        5. logs-zk1.tar.gz
          7 kB
          Badai Aqrandista

        Activity

          People

            Unassigned Unassigned
            badai Badai Aqrandista
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: