[
https://issues.apache.org/jira/browse/HDFS-11434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15875274#comment-15875274
]
Yiqun Lin commented on HDFS-11434:
----------------------------------
Thanks [~brahmareddy] for catching this. I found other similar tests fails due
to using {{PathUtils.getTestPath}},like {{TestFetchImage#testFetchImageHA}}. I
think the root cause of this should be the test path generated in Windows
system is not suitable applying in HDFS path. If we fix this failure by
replacing {{PathUtils#getTestPath}}, it seems not a good way. And then this
method will not never be used. I am thinking we can add the additional
operation to get a valid path in case the operation system is Windows.
{code}
public static Path getTestPath(Class<?> caller, boolean create) {
String testpath = getTestDirName(caller);
// make a simple adjustment to make path valid in case OS is Windows.
return new Path();
}
{code}
How do you think, [~brahmareddy]?
> TestQuota fails in windows
> --------------------------
>
> Key: HDFS-11434
> URL: https://issues.apache.org/jira/browse/HDFS-11434
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Brahma Reddy Battula
> Assignee: Brahma Reddy Battula
> Attachments: HDFS-11434.patch
>
>
> {noformat}
> java.lang.IllegalArgumentException: Pathname
> /D:/hadoop-trunk/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/qTr6mgA9Yv/TestQuota/testQuotaCommands
> from
> D:/hadoop-trunk/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/qTr6mgA9Yv/TestQuota/testQuotaCommands
> is not a valid DFS filename.
> at
> org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:212)
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1119)
> at
> org.apache.hadoop.hdfs.DistributedFileSystem$25.doCall(DistributedFileSystem.java:1116)
> at
> org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
> at
> org.apache.hadoop.hdfs.DistributedFileSystem.mkdirsInternal(DistributedFileSystem.java:1133)
> at
> org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs(DistributedFileSystem.java:1108)
> at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:2218)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]