Xushaohong opened a new pull request #1861:
URL: https://github.com/apache/ozone/pull/1861


   ## What changes were proposed in this pull request? 
   Problem: In PipelineManager, the methods of activating and deactivating 
pipeline methods don't have the lock that originally supposed to have. Thus the 
result is that activate and activate operation could be requested concurrently 
and may lead to reading the stale version of the pipeline state. 
   
   Solution: Add the write lock each time before calling the statemanager.
   
   ## What is the link to the Apache JIRA 
   https://issues.apache.org/jira/browse/HDDS-4756 
   
   ## How was this patch tested?
   The locked version is tested based on the tps upper bound test. The result 
shows that the number of ratis calls per second is declined rapidly.


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