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

Tsz-wo Sze updated RATIS-2345:
------------------------------
    Attachment: result-3-18450620115-split-2.zip

> Leader stepDown could cause a deadlock
> --------------------------------------
>
>                 Key: RATIS-2345
>                 URL: https://issues.apache.org/jira/browse/RATIS-2345
>             Project: Ratis
>          Issue Type: Bug
>          Components: Leader
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>         Attachments: result-3-18450620115-split-2.zip
>
>
> Leader stepDown could cause a deadlock:
> - LeaderStateImpl.stepDown(..), who is holding the RaftServerImpl lock, joins 
> the future returned from server.changeToFollowerAndPersistMetadata(..) 
> -- the future completes after RoleInfo.shutdownLeaderState(..),
> -- which calls LeaderStateImpl.stop()
> -- which waits for all LogAppender to stop.
> - However, LogAppender may waits for the RaftServerImpl lock in 
> LogAppender.onFollowerTerm(..)
> -----
> (Original description)
> In the 10x10 run below, it has 3/100 failures. All failed with timeout.
> - https://github.com/apache/ratis/actions/runs/18450620115/job/52563900327



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

Reply via email to