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

Chris Nauroth commented on HDFS-5125:
-------------------------------------

Here is the test failure and stack trace.  I was running with a small code 
change in {{Path}} to embed the offending URI in the exception message.

{code}
Running org.apache.hadoop.hdfs.server.namenode.TestCreateEditsLog
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.108 sec <<< 
FAILURE!
testCanLoadCreatedEditsLog(org.apache.hadoop.hdfs.server.namenode.TestCreateEditsLog)
  Time elapsed: 1874 sec  <<< ERROR!
org.apache.hadoop.HadoopIllegalArgumentException: Unsupported name: has scheme 
but relative path-part, uri = file:/C:
        at org.apache.hadoop.fs.Path.checkNotSchemeWithRelative(Path.java:67)
        at org.apache.hadoop.fs.FileContext.getFSofPath(FileContext.java:303)
        at org.apache.hadoop.fs.FSLinkResolver.resolve(FSLinkResolver.java:85)
        at 
org.apache.hadoop.fs.FileContext.getFileLinkStatus(FileContext.java:1129)
        at org.apache.hadoop.fs.Globber.getFileLinkStatus(Globber.java:70)
        at org.apache.hadoop.fs.Globber.glob(Globber.java:223)
        at 
org.apache.hadoop.fs.FileContext$Util.globStatus(FileContext.java:1908)
        at 
org.apache.hadoop.hdfs.server.namenode.TestCreateEditsLog.testCanLoadCreatedEditsLog(TestCreateEditsLog.java:84)
{code}

                
> TestCreateEditsLog#testCanLoadCreatedEditsLog fails on Windows in globStatus
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-5125
>                 URL: https://issues.apache.org/jira/browse/HDFS-5125
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0, 2.1.1-beta
>            Reporter: Chris Nauroth
>
> This test calls the {{CreateEditsLog}} tool, then runs {{globStatus}} on the 
> local file system to find the resulting files before moving them to a 
> directory where a NameNode can start up and read them.  The HADOOP-9877 patch 
> has caused this test to start failing on Windows due to internal calls to 
> {{FileContext#getFileLinkStatus}} rejecting the {{Path}} arguments.

--
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

Reply via email to