Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14632

Reduce useless #getNumLiveDataNodes call in SafeModeMonitor

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.10.0, 3.3.0, 3.2.1, 3.1.3
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As mentioned HDFS-14171, SafeModeMonitor invoke useless #getNumLiveDataNodes if not config DataNode threshold.
      The root cause is BlockManagerSafeMode#reportStatus(for trunk branch) or SafeModeInfo#reportStatus (for branch-2.8) print status every 20 seconds and invoke SafeModeInfo#getTurnOffTip.
      Optimize with checking if config DataNode threshold then decide to if get number of live DataNodes.

        Attachments

        1. HDFS-14632.006.patch
          8 kB
          Xiaoqiao He
        2. HDFS-14632.005.patch
          10 kB
          Xiaoqiao He
        3. HDFS-14632.004.patch
          8 kB
          Xiaoqiao He
        4. HDFS-14632.003.patch
          7 kB
          Xiaoqiao He
        5. HDFS-14632.002.patch
          7 kB
          Xiaoqiao He
        6. HDFS-14632.001.patch
          3 kB
          Xiaoqiao He

          Issue Links

            Activity

              People

              • Assignee:
                hexiaoqiao Xiaoqiao He
                Reporter:
                hexiaoqiao Xiaoqiao He
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: