GlenGeng opened a new pull request #1676:
URL: https://github.com/apache/ozone/pull/1676


   ## What changes were proposed in this pull request?
   
   Add ReadWriteLock into PipelineStateManagerV2Impl to protect contentions 
between RaftServer and PipelineManager.
   
   If current leader SCM (as leader of term N) steps down while there are 
on-going transactions, there might be read/write contentions that new leader 
SCM (as leader of term N+1) has replicated some raft log entries encapsulating 
method addPipeline()/removePipeline()/updatePipelineState() to the underlying 
RaftServer that are being applied by StateMachineUpdater, and at the same time 
PipelineManager is calling getPipelines().
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-4560
   
   ## How was this patch tested?
   
   CI
   


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

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