RabbitMQClient
allows multiple simultaneous calls to start()
#141
Labels
RabbitMQClient
allows multiple simultaneous calls to start()
#141
Questions
Do not use this issue tracker to ask questions, instead use one of these channels. Questions will likely be closed without notice.
Version
Which version(s) did you encounter this bug ?
4.1.4
Context
I encountered a
ConcurrentModificationException
during connect while ... using SmallRye Reactive Messaging with the RabbitMQ connector.SmallRye Messaging has a buggy caching code that allows
RabbitMQClient.start()
to be called multiple times concurrently; see the bug here and the proposed fix here.RabbitMQClientImpl
allows thestart
requests to continue and calls it's privateconnect()
method for each start request. Ultimately because multiple connect attempts are completing concurrently aConcurrentModificationException
is throws due to them each attempting iterate/modifyRabbitMQClientImpl.connectionEstablishedCallbacks
.Do you have a reproducer?
I've added a reproducer that shows RabbitMQClient allows multiple concurrent calls to
start()
. Unfortunately I'm having trouble reproducing the ConcurrentModificationException.Steps to reproduce
RabbitMQClient
2.Call start multiple times
starter.zip
Extra
macOS, JVM 17
The text was updated successfully, but these errors were encountered: