HDFS-7948. TestDataNodeHotSwapVolumes#testAddVolumeFailures failed on Windows. (Contributed by Xiaoyu Yao)

This commit is contained in:
Arpit Agarwal 2015-03-18 12:26:00 -07:00
parent 5293ae0311
commit 8944bb3d2e
2 changed files with 4 additions and 1 deletions

View File

@ -855,6 +855,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7953. NN Web UI fails to navigate to paths that contain #.
(kanaka kumar avvaru via wheat9)
HDFS-7948. TestDataNodeHotSwapVolumes#testAddVolumeFailures failed 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

@ -521,7 +521,7 @@ public class TestDataNodeHotSwapVolumes {
dn.getConf().get(DFS_DATANODE_DATA_DIR_KEY).split(",");
assertEquals(4, effectiveVolumes.length);
for (String ev : effectiveVolumes) {
assertThat(new File(ev).getCanonicalPath(),
assertThat(StorageLocation.parse(ev).getFile().getCanonicalPath(),
is(not(anyOf(is(newDirs.get(0)), is(newDirs.get(2))))));
}
}