hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject hadoop git commit: HDFS-9257. improve error message for "Absolute path required" in INode.java to contain the rejected path. Contributed by Marcell Szabo
Date Fri, 16 Oct 2015 15:12:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk a554701fe -> 52ac73f34


HDFS-9257. improve error message for "Absolute path required" in INode.java to contain the
rejected path. Contributed by Marcell Szabo


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/52ac73f3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/52ac73f3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/52ac73f3

Branch: refs/heads/trunk
Commit: 52ac73f344e822e41457582f82abb4f35eba9dec
Parents: a554701
Author: Harsh J <harsh@cloudera.com>
Authored: Fri Oct 16 17:12:35 2015 +0200
Committer: Harsh J <harsh@cloudera.com>
Committed: Fri Oct 16 17:12:35 2015 +0200

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                       | 3 +++
 .../main/java/org/apache/hadoop/hdfs/server/namenode/INode.java   | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/52ac73f3/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 652b7a0..858325f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -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)
 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/52ac73f3/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java
index 64442fd..9d04fbb 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java
@@ -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);
   }


Mime
View raw message