hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11111) Delete something in .Trash using "rm" should be forbidden without safety option
Date Fri, 11 Nov 2016 20:08:58 GMT

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

ASF GitHub Bot commented on HDFS-11111:
---------------------------------------

GitHub user LantaoJin opened a pull request:

    https://github.com/apache/hadoop/pull/159

    HDFS-11111. Delete items in .Trash using rm should be forbidden witho…

    …ut safety option

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/LantaoJin/hadoop HDFS-11111

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hadoop/pull/159.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #159
    
----
commit b65cc0708c7433e79ec20e06f0b3f783e0871585
Author: LantaoJin <jinlantao@gmail.com>
Date:   2016-11-11T19:40:06Z

    HDFS-11111. Delete items in .Trash using rm should be forbidden without safety option

----


> Delete something in  .Trash using "rm" should be forbidden without safety option 
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-11111
>                 URL: https://issues.apache.org/jira/browse/HDFS-11111
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>            Reporter: Lantao Jin
>
> As we discussed in HDFS-11102, double confirmation does not seem to be a graceful solution
for users. Deleting files in .Trash accidentally is still an issue though. The behaviour of
users I'm worried about is {{rm}} ing something in .Trash (without explicitly understanding
that those files will not be recoverable). This is in contrast to {{rm}} ing something with
"-skipTrash" option (That's a very purposeful action).
> So it is not the same case as HADOOP-12358. The solution is throwing an exception and
remind user to add "-trash" option to delete dirs in trash for safely:
> {code}
> Can not delete somehing trash directly! Please add "-trash" or "-T" in "rm" command to
do that.
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message