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 90EA9200BAE for ; Fri, 28 Oct 2016 20:04:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F76A160B06; Fri, 28 Oct 2016 18:04:03 +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 DD9A6160AE4 for ; Fri, 28 Oct 2016 20:04:02 +0200 (CEST) Received: (qmail 9765 invoked by uid 500); 28 Oct 2016 18:03:59 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 9430 invoked by uid 99); 28 Oct 2016 18:03:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 18:03:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 910F2F1597; Fri, 28 Oct 2016 18:03:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: virajith@apache.org To: common-commits@hadoop.apache.org Date: Fri, 28 Oct 2016 18:04:03 -0000 Message-Id: <12893ef2af3d4fecbb799a149f5456d4@git.apache.org> In-Reply-To: <523e71751e7f42dc8629ed1a6f66b2a9@git.apache.org> References: <523e71751e7f42dc8629ed1a6f66b2a9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [05/50] [abbrv] hadoop git commit: HADOOP-13201. Print the directory paths when ViewFs denies the rename operation on internal dirs. Contributed by Tianyin Xiu archived-at: Fri, 28 Oct 2016 18:04:03 -0000 HADOOP-13201. Print the directory paths when ViewFs denies the rename operation on internal dirs. Contributed by Tianyin Xiu Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0c837db8 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0c837db8 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0c837db8 Branch: refs/heads/HDFS-9806 Commit: 0c837db8a874079dd5db83a7eef9c4d2b9d0e9ff Parents: b439517 Author: Brahma Reddy Battula Authored: Thu Oct 27 19:46:41 2016 +0530 Committer: Brahma Reddy Battula Committed: Thu Oct 27 19:46:41 2016 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/0c837db8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java index 3beda53..6195540 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java @@ -472,14 +472,16 @@ public class ViewFs extends AbstractFileSystem { if (resSrc.isInternalDir()) { throw new AccessControlException( - "Cannot Rename within internal dirs of mount table: it is readOnly"); + "Cannot Rename within internal dirs of mount table: src=" + src + + " is readOnly"); } - + InodeTree.ResolveResult resDst = fsState.resolve(getUriPath(dst), false); if (resDst.isInternalDir()) { throw new AccessControlException( - "Cannot Rename within internal dirs of mount table: it is readOnly"); + "Cannot Rename within internal dirs of mount table: dest=" + dst + + " is readOnly"); } /** --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org