Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3968

Enable thread dumps on test timeouts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • test
    • None

    Description

      A neat little trick that sir ndimiduk found yesterday from JUnit.

      https://github.com/junit-team/junit/blob/master/doc/ReleaseNotes4.12.md#pull-request-742-pull-request-986-timeout-exceptions-now-include-stack-trace-from-stuck-thread-experimental

      By using the Timeout building (instead of just specifying the Timeout rule as we do now), we could enable a new feature in JUnit to print out a dump of the threads when a test hits the timeout limit. This could be useful in offline analysis of test failures in the future.

      It looks like we'd have to bump from 4.11 to 4.12 to enable this. I figured such a shake-down is good for master and if we have success, we can consider pulling it back to 1.6 and 1.7.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m