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

Colin Patrick McCabe commented on MAPREDUCE-5430:
-------------------------------------------------

I have managed to isolate the problem.  The old code stripped the fragment in 
{{FileSystem#resolvePath}}; the new code does not.

Here's a unit test which only passes on the previous code:
{code}
  @Test (timeout = 120000)
  public void testResolvePath() throws Exception {
    FileSystem fs = FileSystem.get(URI.create("file:///tmp/"), new 
Configuration());
    URI preUri = new URI("file:///tmp#fragment");
    Path pre = new Path(preUri);
    Path post = fs.resolvePath(pre);
    Assert.assertEquals("resolvePath did not strip the fragment",
        "file:/tmp", post.toString());
  }
{code}

I guess we can continue this discussion on HADOOP-9652, now that we've decided 
to roll this fix into that one.
                
> TestMRApps#testSetClasspathWithArchives is failing
> --------------------------------------------------
>
>                 Key: MAPREDUCE-5430
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5430
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: distributed-cache, mrv2
>    Affects Versions: 2.3.0
>            Reporter: Jason Lowe
>
> TestMRApps#testSetClasspathWithArchives is failing, stacktrace to follow.

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