[
https://issues.apache.org/jira/browse/HDDS-5715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Gui updated HDDS-5715:
---------------------------
Description:
The XceiverServerRatis#raftGids are accessed in the following places
+ XceiverServerRatis#isExist
- CloseContainerCommandHandler#handle
- CreatePipelineCommandHandler#handle
- BlockDeletingService#isDeletionAllowed
+ XceiverServerRatis#notifyGroupRemove
- ContainerStateMachine#notifyGroupRemove
+ XceiverServerRatis#notifyGroupAdd
- ContainerStateMachine#initialize
So there are at least 2 threads:
- BlockDeletingService Thread
- CommandHandlerThread
so we need to make it thread-safe.
was:
The XceiverServerRatis#raftGids are accessed in the following places
+ isExist
- CloseContainerCommandHandler#handle
- CreatePipelineCommandHandler#handle
- BlockDeletingService#isDeletionAllowed
+ notifyGroupRemove
- ContainerStateMachine#notifyGroupRemove
+ notifyGroupAdd
- ContainerStateMachine#initialize
So there are at least 2 threads:
- BlockDeletingService Thread
- CommandHandlerThread
so we need to make it thread-safe.
> Make XceiverServerRatis#raftGids a thread-safe set.
> ---------------------------------------------------
>
> Key: HDDS-5715
> URL: https://issues.apache.org/jira/browse/HDDS-5715
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Mark Gui
> Assignee: Mark Gui
> Priority: Major
>
> The XceiverServerRatis#raftGids are accessed in the following places
> + XceiverServerRatis#isExist
> - CloseContainerCommandHandler#handle
> - CreatePipelineCommandHandler#handle
> - BlockDeletingService#isDeletionAllowed
> + XceiverServerRatis#notifyGroupRemove
> - ContainerStateMachine#notifyGroupRemove
> + XceiverServerRatis#notifyGroupAdd
> - ContainerStateMachine#initialize
> So there are at least 2 threads:
> - BlockDeletingService Thread
> - CommandHandlerThread
> so we need to make it thread-safe.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]