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 9169C200BB2 for ; Sat, 15 Oct 2016 03:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 857AB160AE3; Sat, 15 Oct 2016 01:59: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 C8541160ADD for ; Sat, 15 Oct 2016 03:59:21 +0200 (CEST) Received: (qmail 72659 invoked by uid 500); 15 Oct 2016 01:59:20 -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 72643 invoked by uid 99); 15 Oct 2016 01:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2016 01:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A3E332C4C76 for ; Sat, 15 Oct 2016 01:59:20 +0000 (UTC) Date: Sat, 15 Oct 2016 01:59:20 +0000 (UTC) From: "Yuanbo Liu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10883) `getTrashRoot`'s behavior is not consistent in DFS after enabling EZ. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 15 Oct 2016 01:59:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yuanbo Liu updated HDFS-10883: ------------------------------ Release Note: If root path / is an encryption zone, the old DistributedFileSystem#getTrashRoot(new Path("/")) returns /user/$USER/.Trash which is a wrong behavior. The correct value should be /.Trash/$USER was: If root path **/** is an encryption zone, the old **DistributedFileSystem#getTrashRoot(new Path("/"))** returns ``` /user/$USER/.Trash ``` which is a wrong behavior. The correct value should be ``` /.Trash/$USER ``` > `getTrashRoot`'s behavior is not consistent in DFS after enabling EZ. > --------------------------------------------------------------------- > > Key: HDFS-10883 > URL: https://issues.apache.org/jira/browse/HDFS-10883 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Yuanbo Liu > Assignee: Yuanbo Liu > Fix For: 2.8.0, 3.0.0-alpha2 > > Attachments: HDFS-10883-test-case.txt, HDFS-10883.001.patch, HDFS-10883.002.patch, HDFS-10883.003.patch, HDFS-10883.004.patch > > > Let's say root path ("/") is the encryption zone, and there is a file called "/test" in root path. > {code} > dfs.getTrashRoot(new Path("/")) > {code} > returns "/user/$USER/.Trash", > while > {code} > dfs.getTrashRoot(new Path("/test")) > {code} > returns "/.Trash/$USER". > The first behavior is not correct. Since root path is the encryption zone, it's more reasonable to return "/.Trash/$USER" no matter what the path is. -- 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