Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3582

Hook daemon process exit for testing

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Occasionally the tests fail with "java.util.concurrent.ExecutionException: org.apache.maven.surefire.booter.SurefireBooterForkException:
      Error occurred in starting fork, check output in log" because the NN is exit'ing (via System#exit or Runtime#exit). Unfortunately Surefire doesn't retain the log output (see SUREFIRE-871) so the test log is empty, we don't know which part of the test triggered which exit in HDFS. To make this easier to debug let's hook all daemon process exits when running the tests.

      1. hdfs-3582.txt
        7 kB
        Eli Collins
      2. hdfs-3582.txt
        13 kB
        Eli Collins
      3. hdfs-3582.txt
        13 kB
        Eli Collins
      4. hdfs-3582.txt
        13 kB
        Eli Collins
      5. hdfs-3582.txt
        56 kB
        Eli Collins
      6. hdfs-3582.txt
        57 kB
        Eli Collins
      7. hdfs-3582.txt
        53 kB
        Eli Collins
      8. hdfs-3582.txt
        53 kB
        Eli Collins
      9. hdfs-3582.txt
        57 kB
        Eli Collins
      10. hdfs-3582.txt
        60 kB
        Eli Collins
      11. hdfs-3582.txt
        60 kB
        Eli Collins

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Eli Collins
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development