You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "Xing Lin (Jira)" <ji...@apache.org> on 2022/09/30 21:58:00 UTC

[jira] [Created] (GOBBLIN-1719) Replace moveToTrash with moveToAppropriateTrash for hadoop trash

Xing Lin created GOBBLIN-1719:
---------------------------------

             Summary: Replace moveToTrash with moveToAppropriateTrash for hadoop trash
                 Key: GOBBLIN-1719
                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1719
             Project: Apache Gobblin
          Issue Type: Bug
            Reporter: Xing Lin


moveToTrash(Path p) in Hadoop Trash.java does not support ViewFileSystem. 
Assuming there is no mount point for the user. Then moveToTrash() would try to rename path p to /user/\{user}/.Trash in the fallback FS. When p is in a different namenode than the fallback FS, the rename would fail due to "rename across mount points". Essentially, moveToTrash(Path p) would only succeed when path p is in the fallback FS.

 

Trash.moveToAppropriateTrash() was added to support ViewFileSystem in HADOOP-7284. We should replace moveToTrash with moveToAppropriateTrash. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)