Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9330

Add custom JUnit4 test runner with configurable timeout

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 3.0.0-alpha1
    • test
    • None

    Description

      HADOOP-9112 has added a requirement for all new test methods to declare a timeout, so that jenkins/maven builds will have better information on a timeout.

      Hard coding timeouts into tests is dangerous as it will generate spurious failures on slower machines/networks and when debugging a test.

      I propose providing a custom JUnit4 test runner that test cases can declare as their test runner; this can provide timeouts specified at run-time, rather than in-source.

      Attachments

        1. HADOOP-9330-timeouts-1.patch
          3 kB
          Steve Loughran

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: