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


   ## What changes were proposed in this pull request?
   
   As part of SCMCommand SCM will also send its current term, which will be 
used in Datanode to identify if the command was sent by the latest leader SCM.
    
   Datanode will maintain the highest term that it has seen and compare it with 
the term that is received as part of SCMCommand.
   If the term in the Datanode and SCMCommand are same, the command is added to 
the command queue for processing.
   If the term in the Datanode is less than the term received in SCMCommand, 
Datanode will update its term and add the command to the command queue for 
processing.
   If the term in the Datanode is greater than the term received in SCMCommand, 
Datanode will ignore the command.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-3988
   
   ## 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