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 D652F200B96 for ; Thu, 22 Sep 2016 03:37:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D4DE2160AE1; Thu, 22 Sep 2016 01:37: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 25D89160ADB for ; Thu, 22 Sep 2016 03:37:21 +0200 (CEST) Received: (qmail 79298 invoked by uid 500); 22 Sep 2016 01:37: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 79194 invoked by uid 99); 22 Sep 2016 01:37:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 01:37:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F9DF2C2A65 for ; Thu, 22 Sep 2016 01:37:20 +0000 (UTC) Date: Thu, 22 Sep 2016 01:37: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: Thu, 22 Sep 2016 01:37:23 -0000 [ https://issues.apache.org/jira/browse/HDFS-10883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yuanbo Liu updated HDFS-10883: ------------------------------ Description: 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". Please see the attachment to know how to reproduce this issue. was: 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 second behavior is not correct. Since root path is the encryption zone, which means all files/directories in DFS are encrypted, it's more reasonable to return "/user/$USER/.Trash" no matter what the path is. Please see the attachment to know how to reproduce this issue. > `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 > Attachments: HDFS-10883-test-case.txt, HDFS-10883.001.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". > Please see the attachment to know how to reproduce this issue. -- 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