[
https://issues.apache.org/jira/browse/RATIS-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated RATIS-2345:
------------------------------
Component/s: Leader
(was: Netty)
(was: test)
Description:
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
was:
In the 10x10 run below, it has 3/100 failures. All failed with timeout.
- https://github.com/apache/ratis/actions/runs/18450620115/job/52563900327
Summary: Leader stepDown could cause a deadlock (was:
TestRaftAsyncWithNetty#testWithLoadAsync may failed with timeout)
> 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
>
> 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)