Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/1638
@gemmellr @clebertsuconic I'm not very used to "even loop" patterns hence I
call for help :)
I've found that our `ArtemisExecutor` deadlock with the (fresh new) test
`shouldSubmitBlockingTasksFromEventLoopMaintainingOrder` TL;DR if a
`CountDownLatch::await` is blocking the event loop while waiting a submitted
`CoundDownLatch::countDown`.
Enforcing any code rule to avoid these patterns to be used it not simple,
hence I've provided a fix to it.
Just as a note, the same pattern (verified) blocks the Netty's `EventLoop`
too.
This fix come at the cost of a potential bigger calls stack, but providing
a good boost for "in event loop" executions too, but I'm not 100% to have
messed up with others things.
Wdyt?
---