Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2019

ThreadedStreamConsumer - use Thread.join() instead of CountDownLatch.await()

    XMLWordPrintableJSON

Details

    Description

      Currently, ThreadedStreamConsumer uses CountDownLatch.await() which is not 100% reliable. The thread may die if it is in the waiting state during shutdown period. Let's use Thread.join() in the close().
      Attention: do NOT use Thread.join() in the method handleEvent() - too slow, and therefore we use AtomicBoolean as a treatment.

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            tibordigana Tibor Digana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: