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

Leader 节点重启后,不能自动加入集群 #77

Open
luky116 opened this issue Nov 16, 2024 · 1 comment
Open

Leader 节点重启后,不能自动加入集群 #77

luky116 opened this issue Nov 16, 2024 · 1 comment
Assignees

Comments

@luky116
Copy link
Collaborator

luky116 commented Nov 16, 2024

Is this a regression?

None

Description

复现流程:
1、启动 2 个 KIWI 节点,其中一个执行 RAFT.CLUSTER join 127.0.0.1:9221 加入另一个节点,成为 follower 节点,另一个则成为leader节点
2、往 leader 节点 set 几条数据
3、将 leader 进程关闭,过一会再重启
4、往 leader 节点添加命令,提示报错
image

期望节点重启后,能读取上次的 RAFT 状态,自动加入到集群中

Please provide a link to a minimal reproduction of the bug

No response

Screenshots or videos

images

Please provide the version you discovered this bug in (check about page for version information)

No response

Anything else?

No response

@luky116 luky116 changed the title Leader 节点重启后,不能自动恢复 leader 状态 Leader 节点重启后,不能自动加入集群 Nov 16, 2024
@luky116 luky116 self-assigned this Nov 16, 2024
@luky116
Copy link
Collaborator Author

luky116 commented Nov 16, 2024

潘磊:在 PD 中中, 如果一个节点挂了,leader 会上报心跳,并从集群移除;如果节点重启,需要给 PD 告知已重启,由 PD 中执行加入的逻辑

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

No branches or pull requests

1 participant