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


##########
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:
   Hi, @zhangshuyan0 very nice feature. But i have a question here: how to 
judge DECOMMISSIONED and IN_MAINTENANCE state here? Looking forward to your 
reply.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to