[ 
https://issues.apache.org/jira/browse/RATIS-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze resolved RATIS-2154.
-------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

The pull request is now merged.  Thanks, [~tohsakarin__]!

> The old leader may send appendEntries after term changed
> --------------------------------------------------------
>
>                 Key: RATIS-2154
>                 URL: https://issues.apache.org/jira/browse/RATIS-2154
>             Project: Ratis
>          Issue Type: Wish
>          Components: Leader
>            Reporter: yuuka
>            Assignee: yuuka
>            Priority: Major
>             Fix For: 3.2.0
>
>         Attachments: image-2024-09-12-09-43-30-670.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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.
> !image-2024-09-12-09-43-30-670.png!
>  
> I think we can put state.updateCurrentTerm (newTerm) later. Close LeaderState 
> first before updating the term, and other operations remain unchanged.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to