Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1899

cli.Help should return non-zero status on error parsing args

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1, 1.6.0
    • None

    Description

      Right now org.apache.accumulo.core.cli.Help.parseArgs() uses System.exit(0) on parse error.

      If the user gives invalid flags and triggers this code path, we should exit with non-zero status to indicate a problem.

      Previously (in 1.4.x), not properly setting non-zero status for command line parse errors caused some integration tests to fail silently for some time.

      Attachments

        1. ACCUMULO-1899.patch
          3 kB
          Morgan Haskel

        Activity

          People

            mhaskel Morgan Haskel
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: