Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1727

fsck command can display command usage if user passes any illegal argument

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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

      1. HDFS-1727_3.patch
        3 kB
        sravankorumilli
      2. HDFS-1727.1.patch
        3 kB
        sravankorumilli
      3. HDFS-1727.patch
        4 kB
        sravankorumilli

        Activity

        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Todd Lipcon made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 0.23.0 [ 12315571 ]
        Resolution Fixed [ 1 ]
        Todd Lipcon made changes -
        Assignee sravankorumilli [ sravankorumilli ]
        Uma Maheswara Rao G made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Uma Maheswara Rao G made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        sravankorumilli made changes -
        Attachment HDFS-1727_3.patch [ 12480941 ]
        Uma Maheswara Rao G made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Uma Maheswara Rao G made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        sravankorumilli made changes -
        Attachment HDFS-1727.1.patch [ 12480517 ]
        sravankorumilli made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.20.1 [ 12314048 ]
        Affects Version/s 0.23.0 [ 12315571 ]
        sravankorumilli made changes -
        Attachment HDFS-1727.patch [ 12480252 ]
        Uma Maheswara Rao G made changes -
        Assignee Uma Maheswara Rao G [ umamaheswararao ]
        Uma Maheswara Rao G made changes -
        Field Original Value New Value
        Summary fsck command can display usage if user passes any other arguments with '-' ( other than -move, -delete, -files , -openforwrite, -blocks , -locations, -racks). fsck command can display command usage if user passes any illegal argument
        Assignee Uma Maheswara Rao G [ umamaheswararao ]
        Description 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 usage if user passes any invalid argument like above.
        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
        Uma Maheswara Rao G created issue -

          People

          • Assignee:
            sravankorumilli
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development