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 658097d6da
commit 5b322c6a82
2 changed files with 7 additions and 1 deletions

View File

@ -1169,6 +1169,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 void tearDown() throws Exception {
// 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 void tearDown() throws Exception {
}
}
IOUtils.cleanup(LOG, fs);
cluster.shutdown();
if (cluster != null) {
cluster.shutdown();
}
}
/**