Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3582

Hook daemon process exit for testing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • test
    • None
    • 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.

      Attachments

        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

            People

              eli Eli Collins
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: