Skip to content

Conversation

hu-qing-hua
Copy link

@hu-qing-hua hu-qing-hua commented Sep 9, 2025

修复问题如下:
1.BootstrapCluster等待成为leader循环没有超时机制,有可能发生一直阻塞
2.完成作者的todo,判断当前create raft dir 是否成功
3. 在cluster core.go里用到err := cluster.raftNode.Close()
if err != nil {
panic(err)
}
但是当前raft的Close实现返回内容为fmt.Errorf("raft shutdown %v", future.Error()),永远不可能判断nil成功
4.增加raft_test.go文件用作测试

@hu-qing-hua hu-qing-hua force-pushed the feature/fixRaftModule branch from f15e863 to 754aa1d Compare September 9, 2025 14:36
@HDT3213 HDT3213 merged commit f13d9cb into HDT3213:master Sep 14, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants