Zhe Zhang created HDFS-6992: ------------------------------- Summary: DN decommission control as a utility for unit testing Key: HDFS-6992 URL: https://issues.apache.org/jira/browse/HDFS-6992 Project: Hadoop HDFS Issue Type: Improvement Reporter: Zhe Zhang Assignee: Zhe Zhang Priority: Minor
Currently {{TestDecommission}} contains all test cases as well as control logic for decommission-related tests. This is not ideal because the decommissioning process has too many perspectives to fit in one class. As a matter of fact the current {{TestDecommission}} class is a bit too long, with ad hoc test cases like {{testDecommission}} and {{testDecommission2}}. It is better to move the decommissioning logic to {{DFSTestUtil}} so it can be called in other unit testing classes such as {{TestReplicationPolicy}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)