zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] maoling opened a new pull request #1052: ZOOKEEPER-3502:improve the server command: zabstate to have a better observation on the process of leader election
Date Sun, 11 Aug 2019 06:55:42 GMT
maoling opened a new pull request #1052: ZOOKEEPER-3502:improve the server command: zabstate
to have a better observation on the process of leader election
URL: https://github.com/apache/zookeeper/pull/1052
 
 
   - Just as we knew, the rule of LE is that who has the biggest last zxid who will win.when
the zxid is the same, chose the myid number bigger one.
   - Do the following cmd will have a bird's-eye view on LE
   ```
    ➜  bin curl http://localhost:8081/commands/zabstate  http://localhost:8082/commands/zabstate
http://localhost:8083/commands/zabstate
   {
     "myid" : 1,
     "is_leader" : true,
     "endpoint" : "/127.0.0.1:2181",
     "voting" : true,
     "last_zxid" : "0xfa2c00000000",
     "zab_epoch" : 64044,
     "zab_counter" : 0,
     "zabstate" : "broadcast",
     "command" : "zabstate",
     "error" : null
   }{
     "myid" : 2,
     "is_leader" : false,
     "endpoint" : "/127.0.0.1:2182",
     "voting" : true,
     "last_zxid" : "0xfa2b00000004",
     "zab_epoch" : 64043,
     "zab_counter" : 4,
     "zabstate" : "broadcast",
     "command" : "zabstate",
     "error" : null
   }{
     "myid" : 3,
     "is_leader" : false,
     "endpoint" : "/127.0.0.1:2183",
     "voting" : true,
     "last_zxid" : "0xfa2b00000004",
     "zab_epoch" : 64043,
     "zab_counter" : 4,
     "zabstate" : "broadcast",
     "command" : "zabstate",
     "error" : null
   }%
   ```
   - more details in the [ZOOKEEPER-3502](https://issues.apache.org/jira/browse/ZOOKEEPER-3502)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message