[ 
https://issues.apache.org/jira/browse/HDFS-9391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ming Ma updated HDFS-9391:
--------------------------
    Attachment: Maintenance webUI.png

Thanks [~manojg]!

bq. Shouldn't the DecomNodes include only replicas for DECOMMISSION_INPROGRESS 
nodes?
Good point. The question what value "decommissionOnlyReplicas" property should 
be in the context of maintenance mode. A specific example is if a block has 3 
replicas with one node entering maintenance and the other two being 
decommissioned, if it should be included in "decommissionOnlyReplicas". Given 
we normally use the property as a risk indicator, e.g. what if all 
decommissioning or entering maintenance nodes fail, it seems ok to include 
both. Sure there is backward compatibility semantics here; you can argue it is 
ok given the behavior is the same without maintenance. If we really want to 
separately account for all-3-replicas-being-decommissioned, we can keep the 
strict semantics and add a new property "outOfServiceOnlyReplicas" to account 
for both types. To enable that, we will need to track each type separately in 
LeavingServiceStatus.

bq. should we also have FSNameSystem#getMaintenanceNodes?
Yes something like NameNodeMXBean#getEnteringMaintenanceNodes will be useful.

bq. w.r.t showing Maintenance nodes details ?
getDeadNodes only returns decommissioned case. You can add ".put("adminState", 
node.getAdminState().toString())" to the JSON to cover maintenance. You can 
also add counters to FSNamesystemMBean such as getNumMaintenanceLiveDataNodes, 
similar to getNumDecomLiveDataNodes and getNumDecomDeadDataNodes.

bq. "In Maintenance" Live/Dead nodes count also need to be shown along with 
Decommission nodes ?
That is right. The attached screenshot could be useful. After someone clicks 
the "Entering Maintenance Nodes", it should redirect to another page about its 
progress, similar to the "Decommissioning Nodes". 

bq. Is there a plan to expose the concept of 'OutOfService'?
Based on how we use them, decommissioned nodes are tracked separately from 
maintenance nodes, other than the first point you brought up.

> Update webUI/JMX/fsck to display maintenance state info
> -------------------------------------------------------
>
>                 Key: HDFS-9391
>                 URL: https://issues.apache.org/jira/browse/HDFS-9391
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Ming Ma
>            Assignee: Manoj Govindassamy
>         Attachments: Maintenance webUI.png
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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