hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4287) HTTPFS tests fail on Windows
Date Fri, 07 Dec 2012 18:39:20 GMT

    [ https://issues.apache.org/jira/browse/HDFS-4287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13526621#comment-13526621

Chris Nauroth commented on HDFS-4287:

One problem is that {{TestDirHelper}} enforces some platform-specific validation on TEST_DIR_ROOT.
 On Windows, TEST_DIR_ROOT.startsWith("/") is likely to be false because of the drive spec.

  static {
    try {
      TEST_DIR_ROOT = System.getProperty(TEST_DIR_PROP, new File("target").getAbsolutePath());
      if (!TEST_DIR_ROOT.startsWith("/")) {
        System.err.println(MessageFormat.format("System property [{0}]=[{1}] must be set to
an absolute path",
                                                TEST_DIR_PROP, TEST_DIR_ROOT));
      } else if (TEST_DIR_ROOT.length() < 4) {
        System.err.println(MessageFormat.format("System property [{0}]=[{1}] must be at least
4 chars",
                                                TEST_DIR_PROP, TEST_DIR_ROOT));

That part is easily fixable by switching to {{Path#isUriPathAbsolute}}.  After fixing that,
there are additional problems with path handling:

Running org.apache.hadoop.fs.http.client.TestHttpFSFileSystemLocalFileSystem
Tests run: 30, Failures: 0, Errors: 30, Skipped: 0, Time elapsed: 23.219 sec <<<
testOperation[0](org.apache.hadoop.fs.http.client.TestHttpFSFileSystemLocalFileSystem)  Time
elapsed: 21656 sec  <<< ERROR!
java.lang.RuntimeException: java.lang.IllegalArgumentException: Pathname /user/cnauroth/C:/hd2/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/test-dir/testOperation-0
from ./C:/hd2/hadoop-hdfs-project/hadoop-hdfs-httpfs/target/test-dir/testOperation-0 is not
a valid DFS filename.

> HTTPFS tests fail on Windows
> ----------------------------
>                 Key: HDFS-4287
>                 URL: https://issues.apache.org/jira/browse/HDFS-4287
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
> The HTTPFS tests have some platform-specific assumptions that cause the tests to fail
when run on Windows.

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

View raw message