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


   ## What changes were proposed in this pull request?
   Problem:
   In PipelineManagerV2, the activate and deactivate pipeline methods don't 
have the lock that originally supposed to have based on the HA design. Thus the 
result is that ratis operation could be requested concurrently and may lead to 
reading the stale version of pipeline state.
   
   Solution:
   Add lock 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