Description
When RaftServer starts, startComplete.compareAndSet(false, true) may occur after LeaderElection, in which case FollowerState may be lost
1. Start the FollowerState thread, then Follower becomes candidate before startComplete is set to true
2. Due to startComplete is false currently, so this leaderElection will ending
3. Then the FollowerState thread will exit, causing the raftServer to lose role information
Attachments
Attachments
Issue Links
- links to