Uploaded image for project: 'DistributedLog'
  1. DistributedLog
  2. DL-165

Add TimedOutTestsListener to print the full thread dump on test timeout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • tests
    • None

    Description

      The TestBKSyncLogReader.testReadRecordsAfterReadAheadCaughtUp case seems failed frequently due to timeout, i.e. https://builds.apache.org/job/distributedlog-precommit-pullrequest/com.twitter$distributedlog-core/56/testReport/junit/com.twitter.distributedlog/TestBKSyncLogReader/testReadRecordsAfterReadAheadCaughtUp/

      From the log, it's hard to figure out the root cause, it may be helpful if we had the full thread dump. we can add a TimedOutTestsListener just like netty/hadoop projects, please refer to : https://github.com/junit-team/junit4/issues/463 , https://github.com/netty/netty/pull/4749/files , https://issues.apache.org/jira/browse/HADOOP-8755 for more details

      Attachments

        Issue Links

          Activity

            People

              xieliang007 Liang Xie
              xieliang007 Liang Xie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: