[
https://issues.apache.org/jira/browse/HADOOP-9687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701152#comment-13701152
]
Xi Fang commented on HADOOP-9687:
---------------------------------
Thanks Chris!
> 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