Activity

Here is the draft patch. It also includes datanode state machine transition under some scenarios and part of HDFS-9388 to reuse test code. The complete state machine transition such as ENTERING_MAINTENANCE to IN_MAINTENANCE and the block management will be handled by HDFS-9390.

Add maintenance support to the json based configuration.

If the DN is DECOMMISSIONED or DEAD, transition it to IN_MAINTENANCE.

If the DN is NORMAL, Live or DECOMMISSION_IN_PROGRESS, Live, transition it to ENTERING_MAINTENANCE, Live.

Ming Ma
added a comment - 19/Aug/16 17:51 Here is the draft patch. It also includes datanode state machine transition under some scenarios and part of HDFS-9388 to reuse test code. The complete state machine transition such as ENTERING_MAINTENANCE to IN_MAINTENANCE and the block management will be handled by HDFS-9390 .
Add maintenance support to the json based configuration.
If the DN is DECOMMISSIONED or DEAD , transition it to IN_MAINTENANCE .
If the DN is NORMAL, Live or DECOMMISSION_IN_PROGRESS, Live , transition it to ENTERING_MAINTENANCE, Live .
Upon maintenance expiration, transition it to NORMAL state.