Issue Details (XML | Word | Printable)

Key: HADOOP-6139
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jakob Homan
Reporter: Suman Sehgal
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Incomplete help message is displayed for rm and rmr options.

Created: 09/Jul/09 06:43 AM   Updated: 14/Jul/09 05:28 PM
Return to search
Component/s: None
Affects Version/s: 0.20.1
Fix Version/s: 0.20.1, 0.21.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works COMMON-478.patch 2009-07-09 11:50 PM Jakob Homan 1 kB
Text File Licensed for inclusion in ASF works HADOOP-478-v20.patch 2009-07-09 11:50 PM Jakob Homan 1 kB
Issue Links:
Reference
 

Hadoop Flags: Reviewed
Resolution Date: 10/Jul/09 08:29 PM
Tags: ygridqa


 Description  « Hide
If path/src is missing from rm or rmr option then help message is displayed for these options.

On giving command "hadoop dfs -rm"
help message displayed is "Usage: java FsShell [-rm <path>]"
while it should be "Usage: java FsShell [-rm [-skipTrash] <path>]"

Same issue is there with rmr option also.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jakob Homan added a comment - 09/Jul/09 11:50 PM
Attaching patches for trunk and 20 branch. This is essentially a documentation change. Tested manually.

Jakob Homan added a comment - 09/Jul/09 11:55 PM
I had the issue moved to Common rather than HDFS since the affected file is FsShell.java, within the Common subproject.

Jakob Homan added a comment - 09/Jul/09 11:57 PM
submitting patch.

Jakob Homan added a comment - 10/Jul/09 12:04 AM
Ran unit tests locally. Passes all common unit tests.

Jakob Homan added a comment - 10/Jul/09 01:16 AM
test-patch:
     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     -1 tests included.  The patch doesn't appear to include any new or modified tests.
     [exec]                         Please justify why no new tests are needed for this patch.
     [exec]                         Also please list what manual steps were performed to verify this patch.
     [exec] 
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.

No unit tests because is documentation change. Manual step as documented in jira description.


Hadoop QA added a comment - 10/Jul/09 04:07 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12413065/HADOOP-478-v20.patch
against trunk revision 792812.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.

-1 patch. The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/563/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 10/Jul/09 05:09 PM
+1 patch looks good.

Jakob Homan added a comment - 10/Jul/09 07:07 PM
Hudson tried to apply v20 patch, which is why I ran test-patch manually. Both pathces apply fine. Patch is ready to be committed.

Tsz Wo (Nicholas), SZE added a comment - 10/Jul/09 08:29 PM
I have committed this. Thanks, Jakob!