Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-11740

Ozone: Differentiate time interval for different DatanodeStateMachine state tasks

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • ozone
    • None

    Description

      Currently datanode state machine transitioned between tasks in a fixed time interval, defined by ScmConfigKeys#OZONE_SCM_HEARTBEAT_INTERVAL_SECONDS, the default value is 30s. Once datanode is started, it will need 90s before transited to Heartbeat state, such a long lag is not necessary. Propose to improve the logic of time interval handling, it seems only the heartbeat task needs to be scheduled in OZONE_SCM_HEARTBEAT_INTERVAL_SECONDS interval, rest should be done without any lagging.

      Attachments

        1. statemachine_1.png
          82 kB
          Weiwei Yang
        2. statemachine_2.png
          249 kB
          Weiwei Yang
        3. HDFS-11740-HDFS-7240.001.patch
          30 kB
          Weiwei Yang
        4. HDFS-11740-HDFS-7240.002.patch
          29 kB
          Weiwei Yang
        5. HDFS-11740-HDFS-7240.003.patch
          40 kB
          Weiwei Yang

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: