[
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)