You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Mingchen_Ma (JIRA)" <ji...@apache.org> on 2017/08/21 08:47:00 UTC

[jira] [Created] (HDFS-12330) when we move symlink to symlink ,rename will move the real dir to symlink

Mingchen_Ma created HDFS-12330:
----------------------------------

             Summary: when we move symlink to symlink ,rename will move the real dir to symlink
                 Key: HDFS-12330
                 URL: https://issues.apache.org/jira/browse/HDFS-12330
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: symlinks
            Reporter: Mingchen_Ma


    In function DistributedFileSystem/rename, when dfs.rename is done for the first time, the path 'absSrc'  will be replaced with real pathway if UnresolvedLinkException is caught. Then if the operation is symlink to symlink, the real dir pointed at by symlink will move to targeted dir. And the source of symlink will remain in an invalid state. Actually I think when UnresolvedLinkException first happens, we should firstly replace targeted dir and deal with the source dir of UnresolvedLinkException in FileSystemLinkResolver, because in reality, no UnresolvedLinkException will happen if we rename on symlink to real dir,so that we can move the symlink as we expected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org