You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2023/02/22 11:56:00 UTC
[jira] [Created] (HDDS-8008) Move pendingOps into ContainerStateManagerImpl to ensure consistent state
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org