摘要: 选主的核心代码是在org.apache.zookeeper.server.quorum.FastLeaderElection#lookForLeader方法下。 选主逻辑的核心代码如下: public Vote lookForLeader() throws InterruptedException 阅读全文
posted @ 2024-03-02 17:07 bibibao 阅读(7) 评论(0) 推荐(0) 编辑