Hadoop Common
  1. Hadoop Common
  2. HADOOP-9330

Add custom JUnit4 test runner with configurable timeout

    Details

    • Type: Test Test
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: test
    • Labels:

      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.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:

                Development