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

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

Mark Gui created HDDS-5715:
------------------------------

             Summary: 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


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.



--
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