Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一个changePeers的问题 #1117

Open
ye-xiaowei opened this issue Jun 26, 2024 · 2 comments
Open

请教一个changePeers的问题 #1117

ye-xiaowei opened this issue Jun 26, 2024 · 2 comments

Comments

@ye-xiaowei
Copy link
Contributor

Your question

假设一开始的节点是 123,leader 是 1. 然后 changePeers 是 345.

  1. 45 catchup
  2. 12、45 apply C new & C old
  3. 12、45 apply C new
  4. client 收到 changePeers 成功
  5. 12 宕机
  6. 4 become leader

那这个时候 3 节点并不知道 C new 是不是就加不回去了。

@killme2008
Copy link
Contributor

4 become leader 后会去探测 follower 的 log 状况,然后发起 append entries 来补上或者更正。

@ye-xiaowei
Copy link
Contributor Author

@killme2008 当我把一个节点配置成 [127.0.0.1:8080] 另外一个节点配置成 [127.0.0.1:8080, 127.0.0.1:8081] 的时候,在控制台看见
ignore PreVoteRequest from 127.0.0.1:8081 as it is not in conf <ConfigurationEntry 然后想着是不是在changePeers的时候也会出现这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants