You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "zhangshuyan0 (via GitHub)" <gi...@apache.org> on 2023/07/21 02:15:34 UTC
[GitHub] [hadoop] zhangshuyan0 commented on a diff in pull request #5866: HDFS-17112. Show decommission duration in JMX and HTML.
zhangshuyan0 commented on code in PR #5866:
URL: https://github.com/apache/hadoop/pull/5866#discussion_r1270162405
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java:
##########
@@ -6664,6 +6664,8 @@ public String getDecomNodes() {
node.getLeavingServiceStatus().getOutOfServiceOnlyReplicas())
.put("underReplicateInOpenFiles",
node.getLeavingServiceStatus().getUnderReplicatedInOpenFiles())
+ .put("decommissionDuration",
+ monotonicNow() - node.getLeavingServiceStatus().getStartTime())
Review Comment:
The `node` object here is from `decomNodeList`, which means that it is in decommissioning state.
https://github.com/apache/hadoop/blob/c35f31640ec4d74e85379d838e05c9c923d0cc77/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L6654-L6656
--
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: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org