Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D2E4E200BBE for ; Fri, 11 Nov 2016 21:09:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D1865160AEE; Fri, 11 Nov 2016 20:09:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 27A06160AF6 for ; Fri, 11 Nov 2016 21:09:00 +0100 (CET) Received: (qmail 76155 invoked by uid 500); 11 Nov 2016 20:08:58 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 75775 invoked by uid 99); 11 Nov 2016 20:08:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2016 20:08:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8B7702C4C72 for ; Fri, 11 Nov 2016 20:08:58 +0000 (UTC) Date: Fri, 11 Nov 2016 20:08:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11111) Delete something in .Trash using "rm" should be forbidden without safety option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 11 Nov 2016 20:09:01 -0000 [ https://issues.apache.org/jira/browse/HDFS-11111?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1565= 8045#comment-15658045 ]=20 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= =E2=80=A6 =E2=80=A6ut 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 =20 ---- commit b65cc0708c7433e79ec20e06f0b3f783e0871585 Author: LantaoJin 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=20 > -------------------------------------------------------------------------= -------- > > 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 so= mething in .Trash (without explicitly understanding that those files will n= ot be recoverable). This is in contrast to {{rm}} ing something with "-skip= Trash" option (That's a very purposeful action). > So it is not the same case as HADOOP-12358. The solution is throwing an e= xception 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 "r= m" 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