[
https://issues.apache.org/jira/browse/HDFS-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595423#comment-13595423
]
Plamen Jeliazkov commented on HDFS-4561:
----------------------------------------
In the unit test you can see that it tests FileContext first, passes, and fails
when doing the same command in DistributedFileSystem.
>From the unit test error dump you can see that it fails with
>UnresolvedLinkException on line 66 of my test, where DFS calls getFileStatus
>on a symlink: FileStatus fsStats = fs.getFileStatus(link);
Here is the shortened error dump:
Running org.apache.hadoop.hdfs.TestDFSSymlinks
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.102 sec <<<
FAILURE!
testSymlinkToFile(org.apache.hadoop.hdfs.TestDFSSymlinks) Time elapsed: 3034
sec <<< ERROR!
org.apache.hadoop.hdfs.protocol.UnresolvedPathException: /test/hadoop/file
at
org.apache.hadoop.hdfs.server.namenode.INodeDirectory.getExistingPathINodes(INodeDirectory.java:216)
at
org.apache.hadoop.hdfs.server.namenode.INodeDirectory.getNode(INodeDirectory.java:132)
at
org.apache.hadoop.hdfs.server.namenode.INodeDirectory.getNode(INodeDirectory.java:141)
...
at
org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:57)
at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1561)
at
org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:811)
at
org.apache.hadoop.hdfs.TestDFSSymlinks.testSymlinkToFile(TestDFSSymlinks.java:66)
> Symlinks broken in DFS
> ----------------------
>
> Key: HDFS-4561
> URL: https://issues.apache.org/jira/browse/HDFS-4561
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.3-alpha
> Reporter: Plamen Jeliazkov
> Assignee: Plamen Jeliazkov
> Fix For: 3.0.0, 2.0.4-beta
>
> Attachments: HDFS-4561.symlinksTest.patch
>
>
> Symlinks appear to be working when using FileContext, but broken when using
> DFS / NameNodeRpcServer.
--
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