You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Glen Geng (Jira)" <ji...@apache.org> on 2020/08/11 11:23:00 UTC

[jira] [Updated] (HDDS-3988) DN can distinguish SCMCommand from stale leader SCM

     [ 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 SCM  (was: DN can distinguish SCMCommand from stale leader)

> 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
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org