|
[
Permlink
| « Hide
]
Tsz Wo (Nicholas), SZE added a comment - 24/Jul/08 06:35 PM
How about we create a package org.apache.hadoop.http in core and then split StatusHttpServer to two classes, StatusHttpServer and HttpServer, where HttpServer is an abstract base class for all hadoop http server?
Can
3824_20080724.patch:
> Can
I changed the getWebAppsPath() header as your patch in Would you consider using this version of your patch?
Only change is to the HttpServer constructor calling out to a new method named addWebapps. Its in this method that we add webapps and servlets rather than up in the constructor. Makes it so a subclass can influence whats loaded (not load some or load with different names, etc.). Use case is something like hbase. Currently we have a duplicate of the old StatusHttpServer. We call it InfoServer down in hbase-land. Hbase has webapps like those in hadoop-core only they want just some of the webapps+servlets that hadoop-core used put up in InfoServer. We made the duplicate because we couldn't subclass old StatusHttpServer ( Thanks for your consideration. THanks. Sure, your change looks good.
Found a NPE in addWebapps(...) since webAppContext is null when adding servlets.
3824_20080725.patch: fix the NPE problem. +1 on patch. It looks good. Downloaded it and tried it. UIs came up fine. Does the 'stacks' link work for you? I was typing in http://XX.XX.XXX.XX:50070/stacks
Not important nitpicks: + Says '+ * A mepred http server. ' on the class comment for StatusHttpServer. 3824_20080725b.patch: fixed the following problems
> + Says '+ * A mepred http server. ' on the class comment for StatusHttpServer. > + Maybe make this protected so subclasses have access: + static class StackServlet extends HttpServlet { Checked the web pages manually. Everything seems working fine.
Passed tests locally, try hudson.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12386921/3824_20080725b.patch against trunk revision 679879. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2955/testReport/ This message is automatically generated. I just committed this. Thanks, Nicholas
Integrated in Hadoop-trunk #581 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/581/
3824_20080912_0.18.patch: for 0.18
[exec] +1 overall.
[exec] +1 @author. The patch does not contain any @author tags.
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
The 0.18 patch passed all tests locally. Feel free to use it. It won't be committed to svn.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||