Ivan Andika created HDDS-16029:
----------------------------------
Summary: ContainerBalancer can cause SCM to be stuck
Key: HDDS-16029
URL: https://issues.apache.org/jira/browse/HDDS-16029
Project: Apache Ozone
Issue Type: Bug
Reporter: Ivan Andika
Assignee: ChenXi
An incident is triggered when SCM is stuck when leader transfer is triggered
while ContainerBalancer is running.
{code:java}
changeToFollower
-> role.shutdownLeaderState(false);
-> stateMachine.leaderEvent().notifyNotLeader(...)
-> ContainerBalancer.stop() < -- blocked here
-> state.setLeader(null);
-> state.updateCurrentTerm(newTerm);
-> role.startFollowerState(...); {code}
ContainerBalancer is blocking and will block StateMachineUpdater.
The rule of thumb is notification API should NOT be blocking.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]