You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/11/29 05:21:00 UTC

[jira] [Updated] (RATIS-2172) RaftServer may lose FollowerState

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

Attila Doroszlai updated RATIS-2172:
------------------------------------
    Fix Version/s: 3.1.2

> RaftServer may lose FollowerState
> ---------------------------------
>
>                 Key: RATIS-2172
>                 URL: https://issues.apache.org/jira/browse/RATIS-2172
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.1.1
>            Reporter: yuuka
>            Assignee: yuuka
>            Priority: Critical
>             Fix For: 3.2.0, 3.1.2
>
>         Attachments: image-2024-10-10-11-12-33-251.png, image-2024-10-10-11-13-13-540.png, image-2024-10-10-11-13-43-436.png
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> 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
> !image-2024-10-10-11-12-33-251.png!
> 2. Due to startComplete is false currently, so this leaderElection will ending
>  
> !image-2024-10-10-11-13-13-540.png!
> 3. Then the FollowerState thread will exit, causing the raftServer to lose role information
> !image-2024-10-10-11-13-43-436.png!
>  



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