Skip to content

Commit

Permalink
HBASE-4468 Wrong resource name in an error massage: webapps instead o…
Browse files Browse the repository at this point in the history
…f hbase-webapps

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1174969 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
saintstack committed Sep 23, 2011
1 parent 97ee271 commit c3b56b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/apache/hadoop/hbase/util/InfoServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ private void fixupLogsServletLocation() {
*/
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('/'));
}
Expand Down

0 comments on commit c3b56b2

Please sign in to comment.