You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Badai Aqrandista (Jira)" <ji...@apache.org> on 2020/09/15 02:16:00 UTC

[jira] [Created] (ZOOKEEPER-3936) Zxid mismatch after new node becomes the leader

Badai Aqrandista created ZOOKEEPER-3936:
-------------------------------------------

             Summary: Zxid mismatch after new node becomes the leader
                 Key: ZOOKEEPER-3936
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3936
             Project: ZooKeeper
          Issue Type: Bug
    Affects Versions: 3.5.8
            Reporter: Badai Aqrandista
         Attachments: logs-zk1.tar.gz, logs-zk2.tar.gz, logs-zk3.tar.gz, logs-zk4.tar.gz, logs-zk5.tar.gz

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).

{noformat}
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 %
{noformat}

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




--
This message was sent by Atlassian Jira
(v8.3.4#803005)