hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingchen_Ma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12330) when we move symlink to symlink ,rename will move the real dir to symlink
Date Mon, 21 Aug 2017 08:47:00 GMT
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

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

View raw message