Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: datanode, namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      This jira adds a new metric with name "StaleDataNodes" under metrics context "dfs" of type Gauge. This tracks the number of DataNodes marked as stale. A DataNode is marked stale when the heartbeat message from the DataNode is not received within the configured time ""dfs.namenode.stale.datanode.interval".


      Please see hdfs-default.xml documentation corresponding to "dfs.namenode.stale.datanode.interval" for more details on how to configure this feature. When this feature is not configured, this metrics would return zero.
      Show
      This jira adds a new metric with name "StaleDataNodes" under metrics context "dfs" of type Gauge. This tracks the number of DataNodes marked as stale. A DataNode is marked stale when the heartbeat message from the DataNode is not received within the configured time ""dfs.namenode.stale.datanode.interval". Please see hdfs-default.xml documentation corresponding to "dfs.namenode.stale.datanode.interval" for more details on how to configure this feature. When this feature is not configured, this metrics would return zero.
    • Target Version/s:

      Description

      Backport HDFS-4059 to branch-1.

        Issue Links

          Activity

          Hide
          Jing Zhao added a comment -

          To avoid bringing extra complexity to TestNameNodeMetrics when changing the number of stale nodes in MiniDFSCluster test, I put the test in TestReplicationPolicy.

          Show
          Jing Zhao added a comment - To avoid bringing extra complexity to TestNameNodeMetrics when changing the number of stale nodes in MiniDFSCluster test, I put the test in TestReplicationPolicy.
          Hide
          Matt Foley added a comment -

          Moved "to be fixed in" versions from fixVersion to targetVersion.
          Also, since 1.1.0 has been released without this change, set target to 1.1.1 instead.

          Show
          Matt Foley added a comment - Moved "to be fixed in" versions from fixVersion to targetVersion. Also, since 1.1.0 has been released without this change, set target to 1.1.1 instead.
          Hide
          Suresh Srinivas added a comment -

          Jing, can you run test-patch for this patch and post the results.

          Show
          Suresh Srinivas added a comment - Jing, can you run test-patch for this patch and post the results.
          Hide
          Suresh Srinivas added a comment -

          This jira is ports HDFS-4059 to branch-1.

          Show
          Suresh Srinivas added a comment - This jira is ports HDFS-4059 to branch-1.
          Hide
          Suresh Srinivas added a comment -

          Here test-patch result:
          -1 overall.

          +1 @author. The patch does not contain any @author tags.

          +1 tests included. The patch appears to include 3 new or modified tests.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          -1 findbugs. The patch appears to introduce 9 new Findbugs (version 1.3.9) warnings.

          Findbugs are not related to this. test-patch for branch-1 seems to be broken.

          Show
          Suresh Srinivas added a comment - Here test-patch result: -1 overall. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 9 new Findbugs (version 1.3.9) warnings. Findbugs are not related to this. test-patch for branch-1 seems to be broken.
          Hide
          Suresh Srinivas added a comment -

          I committed the patch to branch-1. Thank you Jing.

          Show
          Suresh Srinivas added a comment - I committed the patch to branch-1. Thank you Jing.
          Hide
          Matt Foley added a comment -

          Closed upon release of Hadoop 1.2.0.

          Show
          Matt Foley added a comment - Closed upon release of Hadoop 1.2.0.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development