Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21238

MapReduceHFileSplitterJob#run shouldn't call System.exit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

          if (args.length < 2) {
            usage("Wrong number of arguments: " + args.length);
            System.exit(-1);
      

      Correct way of handling error condition is through return value of run method.

        Attachments

        1. HBASE-21238.v01.patch
          1 kB
          Artem Ervits

          Activity

            People

            • Assignee:
              dbist13 Artem Ervits
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: