[ https://issues.apache.org/jira/browse/HDDS-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Glen Geng updated HDDS-3988: ---------------------------- Description: 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. > running DN can distinguish SCMCommand from stale leader > ------------------------------------------------------- > > 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 > > 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