[
https://issues.apache.org/jira/browse/HDDS-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Glen Geng updated HDDS-3988:
----------------------------
Summary: DN can distinguish SCMCommand from stale leader (was: running DN
can distinguish SCMCommand from stale leader)
> 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: [email protected]
For additional commands, e-mail: [email protected]