HDFS-13551. TestMiniDFSCluster#testClusterSetStorageCapacity does not shut down cluster. Contributed by Anbang Hu.
(cherry picked from commit 92ebd466c7
)
This commit is contained in:
parent
e28af8b0eb
commit
4ae1ed5b17
|
@ -108,6 +108,7 @@ public class TestMiniDFSCluster {
|
|||
capacities,
|
||||
defaultBlockSize,
|
||||
fileLen);
|
||||
try {
|
||||
verifyStorageCapacity(cluster, capacities);
|
||||
|
||||
/* restart all data nodes */
|
||||
|
@ -131,6 +132,11 @@ public class TestMiniDFSCluster {
|
|||
cluster.restartNameNodes();
|
||||
cluster.waitActive();
|
||||
verifyStorageCapacity(cluster, capacities);
|
||||
} finally {
|
||||
if (cluster != null) {
|
||||
cluster.shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void verifyStorageCapacity(
|
||||
|
|
Loading…
Reference in New Issue