HDFS-14299. ViewFs: Correct error message for read only operations. Contributed by hu xiaodong.
This commit is contained in:
parent
c6ea28c480
commit
59ba3552d3
@ -81,8 +81,8 @@ 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);
|
||||
"InternalDir of ViewFileSystem is readonly, operation " + operation +
|
||||
" not permitted on path " + p + ".");
|
||||
}
|
||||
static AccessControlException readOnlyMountTable(final String operation,
|
||||
final Path p) {
|
||||
|
@ -163,8 +163,8 @@ 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);
|
||||
"InternalDir of ViewFileSystem is readonly, operation " + operation +
|
||||
" not permitted on path " + p + ".");
|
||||
}
|
||||
static AccessControlException readOnlyMountTable(final String operation,
|
||||
final Path p) {
|
||||
|
Loading…
Reference in New Issue
Block a user