Stephen O'Donnell created HDDS-8008:
---------------------------------------
Summary: Move pendingOps into ContainerStateManagerImpl to ensure
consistent state
Key: HDDS-8008
URL: https://issues.apache.org/jira/browse/HDDS-8008
Project: Apache Ozone
Issue Type: Sub-task
Components: SCM
Reporter: Stephen O'Donnell
Assignee: Stephen O'Donnell
As things stand, ContainerManagerImpl holds a reference to
ContainerReplicaPendingOps. As new replicas are received or deleted from the
DNs, the replicas are updated in ContainerStateManager under a lock, and then
pending ops is updated. This leave the possibility of a race condition where
the replicas have been updated but pending ops has not.
To avoid this, we should move the pendingOps update into the StateManager so it
is updated along with the replicas under the same lock.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]