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 BFEA3200BB8 for ; Sat, 12 Nov 2016 09:40:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BE7C7160B00; Sat, 12 Nov 2016 08:40: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 3D565160AF4 for ; Sat, 12 Nov 2016 09:40:00 +0100 (CET) Received: (qmail 20358 invoked by uid 500); 12 Nov 2016 08:39:58 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 20270 invoked by uid 99); 12 Nov 2016 08:39:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Nov 2016 08:39:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 722DE2C0087 for ; Sat, 12 Nov 2016 08:39:58 +0000 (UTC) Date: Sat, 12 Nov 2016 08:39:58 +0000 (UTC) From: "Lantao Jin (JIRA)" Reply-To: jinlantao@gmail.com To: common-dev@hadoop.apache.org Message-ID: <163995345.28914.1478939998468.JavaMail.jiratomcat@arcas> Subject: [jira] Lantao Jin shared "HDFS-11111: Delete something in .Trash using "rm" should be forbidden without safety option " with you MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 12 Nov 2016 08:40:00 -0000 Lantao Jin shared an issue with you ----------------------------------- > 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 > Affects Versions: 2.7.2 > 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} Also shared with hdfs-dev@hadoop.apache.org -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org