diff --git a/CHANGES.txt b/CHANGES.txt index 1aa56c41fa8..91f7793a028 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -301,6 +301,8 @@ Release 0.92.0 - Unreleased znode version mismatch (Ramkrishna) HBASE-4446 Rolling restart RSs scenario, regions could stay in OPENING state (Ming Ma) + HBASE-4468 Wrong resource name in an error massage: webapps instead of + hbase-webapps (nkeywal) TESTS HBASE-4450 test for number of blocks read: to serve as baseline for expected diff --git a/src/main/java/org/apache/hadoop/hbase/util/InfoServer.java b/src/main/java/org/apache/hadoop/hbase/util/InfoServer.java index 84dd12df014..d204eab851d 100644 --- a/src/main/java/org/apache/hadoop/hbase/util/InfoServer.java +++ b/src/main/java/org/apache/hadoop/hbase/util/InfoServer.java @@ -102,10 +102,10 @@ public class InfoServer extends HttpServer { */ protected String getWebAppsPath(String appName) throws FileNotFoundException { // Copied from the super-class. - URL url = getClass().getClassLoader().getResource("hbase-webapps/" + appName); + String resourceName = "hbase-webapps/" + appName; + URL url = getClass().getClassLoader().getResource(resourceName); if (url == null) - throw new FileNotFoundException("webapps/" + appName - + " not found in CLASSPATH"); + throw new FileNotFoundException(resourceName + " not found in CLASSPATH"); String urlString = url.toString(); return urlString.substring(0, urlString.lastIndexOf('/')); }