You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Li Cheng (Jira)" <ji...@apache.org> on 2020/12/07 05:14: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 ]

Li Cheng updated HDDS-3988:
---------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

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