[
https://issues.apache.org/jira/browse/HDFS-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041728#comment-13041728
]
Hudson commented on HDFS-1727:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #697 (See
[https://builds.apache.org/hudson/job/Hadoop-Hdfs-trunk-Commit/697/])
HDFS-1727. fsck command should display command usage if user passes any
illegal argument. Contributed by Sravan Kumar.
todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1129831
Files :
* /hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/tools/DFSck.java
*
/hadoop/hdfs/trunk/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestFsck.java
* /hadoop/hdfs/trunk/CHANGES.txt
> fsck command can display command usage if user passes any illegal argument
> --------------------------------------------------------------------------
>
> Key: HDFS-1727
> URL: https://issues.apache.org/jira/browse/HDFS-1727
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.20.1, 0.23.0
> Reporter: Uma Maheswara Rao G
> Assignee: sravankorumilli
> Priority: Minor
> Fix For: 0.23.0
>
> Attachments: HDFS-1727.1.patch, HDFS-1727.patch, HDFS-1727_3.patch
>
>
> In fsck command if user passes the arguments like
> ./hadoop fsck -test -files -blocks -racks
> In this case it will take / and will display whole DFS information regarding
> to files,blocks,racks.
> But here, we are hiding the user mistake. Instead of this, we can display the
> command usage if user passes any invalid argument like above.
> If user passes illegal optional arguments like
> ./hadoop fsck /test -listcorruptfileblocks instead of
> ./hadoop fsck /test -list-corruptfileblocks also we can display the proper
> command usage
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira