You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2021/09/10 20:48:00 UTC

[jira] [Resolved] (HDDS-5715) Make XceiverServerRatis#raftGids a thread-safe set.

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

Ayush Saxena resolved HDDS-5715.
--------------------------------
    Fix Version/s: 1.2.0
       Resolution: Fixed

> 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
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org