You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by br...@apache.org on 2016/10/27 14:28:09 UTC
hadoop git commit: HADOOP-13201. Print the directory paths when
ViewFs denies the rename operation on internal dirs. Contributed by Tianyin
Xiu
Repository: hadoop
Updated Branches:
refs/heads/branch-2.7 cd07a8858 -> 616d63452
HADOOP-13201. Print the directory paths when ViewFs denies the rename operation on internal dirs. Contributed by Tianyin Xiu
(cherry picked from commit 0c837db8a874079dd5db83a7eef9c4d2b9d0e9ff)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/616d6345
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/616d6345
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/616d6345
Branch: refs/heads/branch-2.7
Commit: 616d6345256ec275a08cd55fb3d17fd6146710a0
Parents: cd07a88
Author: Brahma Reddy Battula <br...@apache.org>
Authored: Thu Oct 27 19:46:41 2016 +0530
Committer: Brahma Reddy Battula <br...@apache.org>
Committed: Thu Oct 27 19:57:00 2016 +0530
----------------------------------------------------------------------
hadoop-common-project/hadoop-common/CHANGES.txt | 4 ++++
.../src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java | 8 +++++---
2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/616d6345/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index f11933b..bcac13e 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -74,6 +74,10 @@ Release 2.7.4 - UNRELEASED
HADOOP-13236. truncate will fail when we use viewfilesystem.
(Brahma Reddy Battula)
+ HADOOP-13201. Print the directory paths when ViewFs denies the rename
+ operation on internal dirs.
+ (Contributed by Tianyin Xiu via Brahma Reddy Battula)
+
Release 2.7.3 - 2016-08-25
INCOMPATIBLE CHANGES
http://git-wip-us.apache.org/repos/asf/hadoop/blob/616d6345/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 975496a..35c1148 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
@@ -471,14 +471,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<AbstractFileSystem> 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