Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2823 SCM HA Support
  3. HDDS-3988

DN can distinguish SCMCommand from stale leader SCM

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SCM

      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.

        Attachments

          Activity

            People

            • Assignee:
              glengeng Glen Geng
              Reporter:
              glengeng Glen Geng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: