hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: HADOOP-9121. InodeTree.java has redundant check for vName while throwing exception. Contributed by Arup Malakar.
Date Mon, 29 Feb 2016 02:42:14 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.7 f68e1401b -> 048181738


HADOOP-9121. InodeTree.java has redundant check for vName while throwing exception. Contributed
by Arup Malakar.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1418005 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit a5331eeeadd1f248b6961078303d75d41f241919)
(cherry picked from commit fca24fbbaa1f8dd13514084f6cdee6a111b31765)


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

Branch: refs/heads/branch-2.7
Commit: 0481817381cce34ef4df2f2e7353763c98916dce
Parents: f68e140
Author: Suresh Srinivas <suresh@apache.org>
Authored: Thu Dec 6 17:09:17 2012 +0000
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Mon Feb 29 11:36:40 2016 +0900

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt               | 3 +++
 .../src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java  | 7 +++----
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/04818173/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 3d4cdaf..4448a78 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -62,6 +62,9 @@ Release 2.7.3 - UNRELEASED
     HADOOP-8818. Use equals instead == in MD5MD5CRC32FileChecksum
     and TFileDumper. (Brandon Li via suresh)
 
+    HADOOP-9121. InodeTree.java has redundant check for vName while
+    throwing exception. (Arup Malakar via suresh)
+
 Release 2.7.2 - 2016-01-25
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/04818173/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
index 632f325..8c42cdf 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
@@ -118,8 +118,7 @@ abstract class InodeTree<T> {
       return result;
     }
     
-    INode<T> resolveInternal(final String pathComponent)
-        throws FileNotFoundException {
+    INode<T> resolveInternal(final String pathComponent) {
       return children.get(pathComponent);
     }
     
@@ -336,8 +335,8 @@ abstract class InodeTree<T> {
     }
     if (!gotMountTableEntry) {
       throw new IOException(
-          "ViewFs: Cannot initialize: Empty Mount table in config for " + 
-             vName == null ? "viewfs:///" : ("viewfs://" + vName + "/"));
+          "ViewFs: Cannot initialize: Empty Mount table in config for " +
+             "viewfs://" + vName + "/");
     }
   }
 


Mime
View raw message