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

TestDriver#testDriver fails on hadoop 2.0.x

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      TestDriver#testDriver relies on System.exit() call from ProgramDriver#driver() because LauncherSecurityManager latches onto checkExit().

      In hadoop 2.0, ProgramDriver#driver() has the following code:

        public void driver(String[] argv) throws Throwable {
          if (run(argv) == -1) {
            System.exit(-1);
          }
        }
      

      Meaning, if the execution is successful, System.exit() call would be bypassed.

      This leads to test failure such as the following:

      https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/552/testReport/org.apache.hadoop.hbase.mapreduce/TestDriver/testDriver/

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: