Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7341

Fix option parsing in CommandFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0
    • fs
    • None
    • Reviewed

    Description

      CommandFormat currently allows options in any location within the args. This is not the intended behavior for FsShell commands. Prior to the redesign, the commands used to expect option processing to stop at the first non-option.

      CommandFormat was an existing class prior the redesign, but it was only used by "count" to find the -q flag. All commands were converted to using this class, thus inherited the unintended behavior.

      Attachments

        1. HADOOP-7341.patch
          16 kB
          Daryn Sharp
        2. HADOOP-7341-2.patch
          17 kB
          Daryn Sharp
        3. HADOOP-7341-3.patch
          17 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: