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 84227200BAB for ; Fri, 7 Oct 2016 13:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 82B40160AD6; Fri, 7 Oct 2016 11:54:22 +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 C8A80160AE8 for ; Fri, 7 Oct 2016 13:54:21 +0200 (CEST) Received: (qmail 7348 invoked by uid 500); 7 Oct 2016 11:54:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 7328 invoked by uid 99); 7 Oct 2016 11:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 11:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 955452C2A67 for ; Fri, 7 Oct 2016 11:54:20 +0000 (UTC) Date: Fri, 7 Oct 2016 11:54:20 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12977) s3a to handle delete("/", true) robustly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Oct 2016 11:54:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15554897#comment-15554897 ] Steve Loughran commented on HADOOP-12977: ----------------------------------------- Patch applied to trunk and branch-2; the trunk patch was simply done by skipping the s3 test; git lets you do this with ease {code} git apply -3 --verbose --whitespace=fix --exclude hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/contract/s3/ITestS3ContractRootDir.java HADOOP-12977-branch-2-006.patch {code} Branch-2.8 is another matter; I will do that quickly and attach under here again > s3a to handle delete("/", true) robustly > ---------------------------------------- > > Key: HADOOP-12977 > URL: https://issues.apache.org/jira/browse/HADOOP-12977 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 2.9.0 > Reporter: Steve Loughran > Assignee: Steve Loughran > Priority: Minor > Attachments: HADOOP-12977-001.patch, HADOOP-12977-002.patch, HADOOP-12977-branch-2-002.patch, HADOOP-12977-branch-2-002.patch, HADOOP-12977-branch-2-003.patch, HADOOP-12977-branch-2-004.patch, HADOOP-12977-branch-2-005.patch, HADOOP-12977-branch-2-006.patch > > > if you try to delete the root directory on s3a, you get politely but firmly told you can't > {code} > 2016-03-30 12:01:44,924 INFO s3a.S3AFileSystem (S3AFileSystem.java:delete(638)) - s3a cannot delete the root directory > {code} > The semantics of {{rm -rf "/"}} are defined, they are "delete everything underneath, while preserving the root dir itself". > # s3a needs to support this. > # this skipped through the FS contract tests in {{AbstractContractRootDirectoryTest}}; the option of whether deleting / works or not should be made configurable. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org