HDFS-14299. ViewFs: Correct error message for read only operations. Contributed by hu xiaodong.

This commit is contained in:
Surendra Singh Lilhore 2019-02-26 12:40:32 +05:30
parent c6ea28c480
commit 59ba3552d3
2 changed files with 6 additions and 6 deletions

View File

@ -80,9 +80,9 @@ public class ViewFileSystem extends FileSystem {
static AccessControlException readOnlyMountTable(final String operation, static AccessControlException readOnlyMountTable(final String operation,
final String p) { final String p) {
return new AccessControlException( return new AccessControlException(
"InternalDir of ViewFileSystem is readonly; operation=" + operation + "InternalDir of ViewFileSystem is readonly, operation " + operation +
"Path=" + p); " not permitted on path " + p + ".");
} }
static AccessControlException readOnlyMountTable(final String operation, static AccessControlException readOnlyMountTable(final String operation,
final Path p) { final Path p) {

View File

@ -162,9 +162,9 @@ public class ViewFs extends AbstractFileSystem {
static AccessControlException readOnlyMountTable(final String operation, static AccessControlException readOnlyMountTable(final String operation,
final String p) { final String p) {
return new AccessControlException( return new AccessControlException(
"InternalDir of ViewFileSystem is readonly; operation=" + operation + "InternalDir of ViewFileSystem is readonly, operation " + operation +
"Path=" + p); " not permitted on path " + p + ".");
} }
static AccessControlException readOnlyMountTable(final String operation, static AccessControlException readOnlyMountTable(final String operation,
final Path p) { final Path p) {