[
https://issues.apache.org/jira/browse/HDFS-16402?focusedWorklogId=701731&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-701731
]
ASF GitHub Bot logged work on HDFS-16402:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Dec/21 00:23
Start Date: 29/Dec/21 00:23
Worklog Time Spent: 10m
Work Description: tomscut opened a new pull request #3839:
URL: https://github.com/apache/hadoop/pull/3839
JIRA: [HDFS-16402](https://issues.apache.org/jira/browse/HDFS-16402).
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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 701731)
Remaining Estimate: 0h
Time Spent: 10m
> 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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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: [email protected]
For additional commands, e-mail: [email protected]