Description
The leader will become a follower after receiving a higher term, but during this process, the old leader may be appending LogEntry, and the error log will be printed until LogAppenderDaemon is closed.
I think we can put state.updateCurrentTerm (newTerm) later. Close LeaderState first before updating the term, and other operations remain unchanged.
Attachments
Attachments
Issue Links
- links to