|
[
Permlink
| « Hide
]
Doug Cutting added a comment - 26/Apr/08 03:50 AM
In case I wasn't clear, this would be analogous to port 80 as the default port for HTTP.
Here's an implementation of this, using the default port of 8020.
Is 8020 a good default port for namenodes? That's what's used within Y!, but http://www.iana.org/assignments/port-numbers SANS doesnt list 8020 as a port used by popular malware, that being something you want to avoid unless you want to upset your network security team
http://www.sans.org/resources/idfaq/oddports.php New patch that updates documentation accordingly.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381261/HADOOP-3317.patch against trunk revision 645773. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 3 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2357/testReport/ This message is automatically generated. I'm not wild about adding things that are local to the NameNode into FSConstants. (Actually, the idiom of FSConstants, which just provides constants via inheritance is considered an anti-pattern...) A static final in NameNode would be better, but it is a nit.
The bigger problem is that you don't have any unit tests. You can't do a system test, because we don't allow fixed ports in the unit tests, but you can parse the string and get the uri. The static method NameNode.getUri is passed a NameNode and therefore shouldn't be static. > A static final in NameNode would be better, but it is a nit.
Good idea. I moved the constant to NameNode. > The bigger problem is that you don't have any unit tests Good point. I've added some unit tests. > The static method NameNode.getUri is passed a NameNode and therefore shouldn't be static. The parameter is named "namenode" but it's an InetSocketAddress. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381328/HADOOP-3317.patch against trunk revision 645773. @author +1. The patch does not contain any @author tags. tests included +1. The patch appears to include 6 new or modified tests. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new javac compiler warnings. release audit +1. The applied patch does not generate any new release audit warnings. findbugs -1. The patch appears to introduce 1 new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2369/testReport/ This message is automatically generated. Doh! Forgot to make the constant final...
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381448/HADOOP-3317.patch against trunk revision 653611. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 6 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/2400/testReport/ This message is automatically generated. Integrated in Hadoop-trunk #483 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/483/
Integrated in Hadoop-trunk #537 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/537/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||