Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16791

Add thread detection to ClusterTestExtensions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      `ClusterTestExtensions` should implement `BeforeAllCallback` and `AfterAllCallback` by `TestUtils.verifyNoUnexpectedThreads`

      We can leverage `BeforeEachCallback`/`AfterEachCallback` to implement new AfterEachCallback instead of `verifyNoUnexpectedThreads`. Notice the new thread detection should avoid cascading failure - the thread leak should make specific test case (rather than all subsequent test cases) fail

      `ClusterTestExtensions` should implement `BeforeAllCallback` and `AfterAllCallback` to check the thread leak for each "test case"

      Attachments

        Issue Links

          Activity

            People

              yangpoan PoAn Yang
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: