HDFS-14299. ViewFs: Correct error message for read only operations. Contributed by hu xiaodong.
This commit is contained in:
parent
c6ea28c480
commit
59ba3552d3
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user