sodonnel opened a new pull request, #4298:
URL: https://github.com/apache/ozone/pull/4298

   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8008
   
   ## How was this patch tested?
   
   Existing tests cover this.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to