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

启动集群的时候,onLeaderStart未被执行 #1295

Open
w-wenran opened this issue Nov 8, 2024 · 0 comments
Open

启动集群的时候,onLeaderStart未被执行 #1295

w-wenran opened this issue Nov 8, 2024 · 0 comments

Comments

@w-wenran
Copy link

w-wenran commented Nov 8, 2024

在测试过程中发现,当启动一个Jraft集群,刚好被选为leader的节点StateMachine onApply()方法出现异常的情况下,onLeaderStart方法就不会收到调用,导致通过自己维护一个任期变量判断是否未leader的方式变得不可用

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

1 participant