HADOOP-13201. Print the directory paths when ViewFs denies the rename operation on internal dirs. Contributed by Tianyin Xiu
This commit is contained in:
parent
b439517502
commit
0c837db8a8
@ -472,14 +472,16 @@ public void renameInternal(final Path src, final Path dst,
|
||||
|
||||
if (resSrc.isInternalDir()) {
|
||||
throw new AccessControlException(
|
||||
"Cannot Rename within internal dirs of mount table: it is readOnly");
|
||||
"Cannot Rename within internal dirs of mount table: src=" + src
|
||||
+ " is readOnly");
|
||||
}
|
||||
|
||||
|
||||
InodeTree.ResolveResult<AbstractFileSystem> resDst =
|
||||
fsState.resolve(getUriPath(dst), false);
|
||||
if (resDst.isInternalDir()) {
|
||||
throw new AccessControlException(
|
||||
"Cannot Rename within internal dirs of mount table: it is readOnly");
|
||||
"Cannot Rename within internal dirs of mount table: dest=" + dst
|
||||
+ " is readOnly");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user