You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "tomscut (Jira)" <ji...@apache.org> on 2021/12/29 00:21:00 UTC

[jira] [Created] (HDFS-16402) HeartbeatManager may cause incorrect stats

tomscut created HDFS-16402:
------------------------------

             Summary: HeartbeatManager may cause incorrect stats
                 Key: HDFS-16402
                 URL: https://issues.apache.org/jira/browse/HDFS-16402
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: tomscut
            Assignee: tomscut


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|https://issues.apache.org/jira/browse/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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org