Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E533918735 for ; Mon, 7 Mar 2016 06:08:41 +0000 (UTC) Received: (qmail 85472 invoked by uid 500); 7 Mar 2016 06:08:40 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 85261 invoked by uid 500); 7 Mar 2016 06:08:40 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 85240 invoked by uid 99); 7 Mar 2016 06:08:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2016 06:08:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A847A2C14F4 for ; Mon, 7 Mar 2016 06:08:40 +0000 (UTC) Date: Mon, 7 Mar 2016 06:08:40 +0000 (UTC) From: "Konstantin Shaposhnikov (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-9913) DispCp doesn't use Trash with -delete option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Konstantin Shaposhnikov created HDFS-9913: --------------------------------------------- Summary: DispCp doesn't use Trash with -delete option Key: HDFS-9913 URL: https://issues.apache.org/jira/browse/HDFS-9913 Project: Hadoop HDFS Issue Type: Bug Components: distcp Affects Versions: 2.7.2 Reporter: Konstantin Shaposhnikov Documentation for DistCp -delete option says (http://hadoop.apache.org/docs/current/hadoop-distcp/DistCp.html): | The deletion is done by FS Shell. So the trash will be used, if it is enable. However it seems to be no longer the case. The latest source code (https://svn.apache.org/repos/asf/hadoop/common/trunk/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java) uses `FileSystem.delete` and trash options seems to be not applied. -- This message was sent by Atlassian JIRA (v6.3.4#6332)