[ https://issues.apache.org/jira/browse/HDDS-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HDDS-3988: --------------------------------- Labels: pull-request-available (was: ) > DN can distinguish SCMCommand from stale leader SCM > --------------------------------------------------- > > Key: HDDS-3988 > URL: https://issues.apache.org/jira/browse/HDDS-3988 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Components: SCM > Reporter: Glen Geng > Assignee: Glen Geng > Priority: Major > Labels: pull-request-available > > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org