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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org