HDFS-9257. improve error message for "Absolute path required" in INode.java to contain the rejected path. Contributed by Marcell Szabo
This commit is contained in:
parent
a554701fe4
commit
52ac73f344
|
@ -849,6 +849,9 @@ Release 2.8.0 - UNRELEASED
|
|||
|
||||
IMPROVEMENTS
|
||||
|
||||
HDFS-9257. improve error message for "Absolute path required" in INode.java
|
||||
to contain the rejected path (Marcell Szabo via harsh)
|
||||
|
||||
HDFS-2390. dfsadmin -setBalancerBandwidth does not validate -ve value
|
||||
(Gautam Gopalakrishnan via harsh)
|
||||
|
||||
|
|
|
@ -748,7 +748,8 @@ public abstract class INode implements INodeAttributes, Diff.Element<byte[]> {
|
|||
*/
|
||||
public static String[] getPathNames(String path) {
|
||||
if (path == null || !path.startsWith(Path.SEPARATOR)) {
|
||||
throw new AssertionError("Absolute path required");
|
||||
throw new AssertionError("Absolute path required, but got '"
|
||||
+ path + "'");
|
||||
}
|
||||
return StringUtils.split(path, Path.SEPARATOR_CHAR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue