Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Some code cleanup for DatanodeDescriptor and HeartbeatManager. The changes include:

      1. Change DataDescriptor#isAlive and DatanodeDescriptor#needKeyUpdate from public to private
      2. Use EnumMap for HeartbeatManager#storageTypeStatesMap
      3. Move the isInStartupSafeMode out of the namesystem lock in heartbeatCheck

        Attachments

        1. HDFS-9223.000.patch
          30 kB
          Jing Zhao
        2. HDFS-9223.001.patch
          43 kB
          Jing Zhao
        3. HDFS-9223.002.patch
          43 kB
          Jing Zhao
        4. HDFS-9223.003.patch
          44 kB
          Jing Zhao

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              jingzhao Jing Zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: