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

@ -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) {

View File

@ -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) {