HDFS-13551. TestMiniDFSCluster#testClusterSetStorageCapacity does not shut down cluster. Contributed by Anbang Hu.

This commit is contained in:
Inigo Goiri 2018-05-15 10:21:42 -07:00
parent 07d8505f75
commit 92ebd466c7

View File

@ -108,6 +108,7 @@ public void testClusterSetStorageCapacity() throws Throwable {
capacities,
defaultBlockSize,
fileLen);
try {
verifyStorageCapacity(cluster, capacities);
/* restart all data nodes */
@ -131,6 +132,11 @@ public void testClusterSetStorageCapacity() throws Throwable {
cluster.restartNameNodes();
cluster.waitActive();
verifyStorageCapacity(cluster, capacities);
} finally {
if (cluster != null) {
cluster.shutdown();
}
}
}
private void verifyStorageCapacity(