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

Improve HeartbeatManager logic to avoid incorrect stats

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      After reconfig dfs.datanode.data.dir, we found that the stats of the Namenode Web became negative and there were many NPE in namenode logs. This problem has been solved by HDFS-14042.

      However, if HeartbeatManager#updateHeartbeat and HeartbeatManager#updateLifeline throw other exceptions, stats errors can also occur. We should ensure that stats.subtract() and stats.add() are transactional.

      Attachments

        Issue Links

          Activity

            People

              tomscut Tao Li
              tomscut Tao Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h