|
It would be nice if more of the CommandExecutor logic were part of the enumerated type, but it's not necessary for this patch.
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12394680/+HADOOP-4708.patch against trunk revision 720930. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 9 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 Eclipse classpath. The patch retains Eclipse classpath integrity. +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/3655/testReport/ This message is automatically generated. recommended fixes to the patch:
1. moving logic of selecting correct function for a type of command to CommandExecutor (I think it makes sense to do it now, cause it is more clean) 2. making get methods final 3. removing unnecessary formating and casting. 4. changed to switch from if-else with a default throw. I left getCmd and not toString() - it makes more sense. +1
I just committed this. Thanks, Boris Integrated in Hadoop-trunk #677 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/677/
. Add support for dfsadmin commands in TestCLI. Contributed by Boris Shkolnik. Integrated in Hadoop-trunk #684 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/684/
. Add binaries missed in the initial checkin for Chukwa. Contributed by Eric Yang. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
implementation wise we should change a command from being a String to be a class that knows what type of command it is and use DFSShell for dfsadmin commands.