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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment