You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Xiaoqiao He (Jira)" <ji...@apache.org> on 2025/04/10 12:53:00 UTC
[jira] [Resolved] (HDFS-17760) Fix MoveToTrash throws ParentNotDirectoryException when there is a file inode with the same name in the trash
[ https://issues.apache.org/jira/browse/HDFS-17760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaoqiao He resolved HDFS-17760.
--------------------------------
Fix Version/s: 3.5.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Fix MoveToTrash throws ParentNotDirectoryException when there is a file inode with the same name in the trash
> --------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-17760
> URL: https://issues.apache.org/jira/browse/HDFS-17760
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: liuguanghua
> Assignee: liuguanghua
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> Move a dir to trash , when the trash alreay has a file inode with the same name in dir, it will throw ParentNotDirectoryException.
> This can be reproduced by following the steps below:
> User test does this:
> (1)hdfs dfs -touch /subdir0
> (2)hdfs dfs -rmr /subdir0
> The trash path will be /user/test/.Trash/Current/subdir0
> (3) hdfs dfs -mkdir -p /subdir0/subdir1/subdir2
> (4)hdfs dfs -rmr /subdir0/subdir1/subdir2
> The trash path should be /user/test/.Trash/Current/subdir0timestamp/subdir1/subdir2 ,rather than thow ParentNotDirectoryException
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org