[ 
https://issues.apache.org/jira/browse/HDFS-7162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152832#comment-14152832
 ] 

Chengbing Liu commented on HDFS-7162:
-------------------------------------

[~cmccabe] Simply adding a slash at the end of {{trash_base}} won't work since 
the abs_path could be {{/user/yourname/.Trash/Current}}, which should and will 
not be deleted then. I have added another check for this in the second patch.

And the previous fix was about the missing slash between {{target_dir}} and 
{{pcomp}}, which has nothing to do with the slash after {{Current}}. Please 
help review the new patch, thanks!

> Wrong path when deleting through fuse-dfs a file which already exists in trash
> ------------------------------------------------------------------------------
>
>                 Key: HDFS-7162
>                 URL: https://issues.apache.org/jira/browse/HDFS-7162
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fuse-dfs
>    Affects Versions: 3.0.0, 2.5.1
>            Reporter: Chengbing Liu
>            Assignee: Chengbing Liu
>         Attachments: HDFS-7162.2.patch, HDFS-7162.patch
>
>
> HDFS-4913 lacks a slash in renaming existing trash file. Very small fix for 
> this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to