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 2023/02/03 19:44:00 UTC

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

     [ https://issues.apache.org/jira/browse/GOBBLIN-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xing Lin resolved GOBBLIN-1719.
-------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)