[ 
https://issues.apache.org/jira/browse/HDFS-17112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17745343#comment-17745343
 ] 

ASF GitHub Bot commented on HDFS-17112:
---------------------------------------

hfutatzhanghb commented on code in PR #5866:
URL: https://github.com/apache/hadoop/pull/5866#discussion_r1270163504


##########
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:
   Thanks a lot. @zhangshuyan0 .





> Show decommission duration in JMX and HTML
> ------------------------------------------
>
>                 Key: HDFS-17112
>                 URL: https://issues.apache.org/jira/browse/HDFS-17112
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Shuyan Zhang
>            Assignee: Shuyan Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> Expose decommission duration time in JMX page. It's a very useful info when 
> decommissioning a batch of datanodes in a cluster.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to