HDFS-7946. TestDataNodeVolumeFailureReporting NPE on Windows. (Contributed by Xiaoyu Yao)

This commit is contained in:
Arpit Agarwal 2015-03-17 21:29:19 -07:00
parent 15ebacf03a
commit 7d0f84bd8d
2 changed files with 7 additions and 1 deletions

View File

@ -866,6 +866,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7886. Fix TestFileTruncate falures. (Plamen Jeliazkov and shv)
HDFS-7946. TestDataNodeVolumeFailureReporting NPE on Windows. (Xiaoyu Yao
via Arpit Agarwal)
BREAKDOWN OF HDFS-7584 SUBTASKS AND RELATED JIRAS
HDFS-7720. Quota by Storage Type API, tools and ClientNameNode

View File

@ -91,6 +91,7 @@ public class TestDataNodeVolumeFailureReporting {
// been simulated by denying execute access. This is based on the maximum
// number of datanodes and the maximum number of storages per data node used
// throughout the tests in this suite.
assumeTrue(!Path.WINDOWS);
int maxDataNodes = 3;
int maxStoragesPerDataNode = 4;
for (int i = 0; i < maxDataNodes; i++) {
@ -100,7 +101,9 @@ public class TestDataNodeVolumeFailureReporting {
}
}
IOUtils.cleanup(LOG, fs);
cluster.shutdown();
if (cluster != null) {
cluster.shutdown();
}
}
/**