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 su...@apache.org on 2019/02/26 08:17:17 UTC
[hadoop] branch trunk updated: HDFS-14299. ViewFs: Correct error
message for read only operations. Contributed by hu xiaodong.
This is an automated email from the ASF dual-hosted git repository.
surendralilhore pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 59ba355 HDFS-14299. ViewFs: Correct error message for read only operations. Contributed by hu xiaodong.
59ba355 is described below
commit 59ba3552d35fa10614b3b7aec42a0d81bd51b944
Author: Surendra Singh Lilhore <su...@apache.org>
AuthorDate: Tue Feb 26 12:40:32 2019 +0530
HDFS-14299. ViewFs: Correct error message for read only operations. Contributed by hu xiaodong.
---
.../src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java | 6 +++---
.../src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
index bc73f1b..276c07e 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
@@ -80,9 +80,9 @@ public class ViewFileSystem extends FileSystem {
static AccessControlException readOnlyMountTable(final String operation,
final String p) {
- return new AccessControlException(
- "InternalDir of ViewFileSystem is readonly; operation=" + operation +
- "Path=" + p);
+ return new AccessControlException(
+ "InternalDir of ViewFileSystem is readonly, operation " + operation +
+ " not permitted on path " + p + ".");
}
static AccessControlException readOnlyMountTable(final String operation,
final Path p) {
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 1770476..2c8c1a5 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
@@ -162,9 +162,9 @@ public class ViewFs extends AbstractFileSystem {
static AccessControlException readOnlyMountTable(final String operation,
final String p) {
- return new AccessControlException(
- "InternalDir of ViewFileSystem is readonly; operation=" + operation +
- "Path=" + p);
+ return new AccessControlException(
+ "InternalDir of ViewFileSystem is readonly, operation " + operation +
+ " not permitted on path " + p + ".");
}
static AccessControlException readOnlyMountTable(final String operation,
final Path p) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org