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

TestDriver#testDriver fails on hadoop 2.0.x

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • 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

        1. 8681-v1.txt
          0.7 kB
          Ted Yu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: