[ https://issues.apache.org/jira/browse/HADOOP-9687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth resolved HADOOP-9687. ----------------------------------- Resolution: Fixed +1 for the patch. I verified the tests on Mac and Windows. I committed this to branch-1-win. Xi, thank you for the patch. > branch-1-win TestJobTrackerQuiescence and TestFileLengthOnClusterRestart > failed caused by incorrect DFS path construction on Windows > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: HADOOP-9687 > URL: https://issues.apache.org/jira/browse/HADOOP-9687 > Project: Hadoop Common > Issue Type: Bug > Components: test > Affects Versions: 1-win > Environment: Windows > Reporter: Xi Fang > Assignee: Xi Fang > Priority: Minor > Fix For: 1-win > > Attachments: HADOOP-9687.1.patch > > > TestJobTrackerQuiescence is a test case introduced in > https://issues.apache.org/jira/browse/MAPREDUCE-4328. > Here is the code generating a file path on DFS: > {code} > final Path testDir = > new Path(System.getProperty("test.build.data", "/tmp"), "jt-safemode"); > {code} > This doesn't work on Windows because "test.build.data" would have a driver > name with ":" (e.g. D:/hadoop/build/test). However, this is not a valid path > name on DFS because colon is disallowed (See DFSUtil#isValidName()). > A similar problem happens to > TestFileLengthOnClusterRestart#testFileLengthWithHSyncAndClusterRestartWithOutDNsRegister() > {code} > Path path = new Path(MiniDFSCluster.getBaseDir().getPath(), "test"); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira