You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-3166: SMLC: synchronize on processorThreadsToInterrupt
Fixes: #3166
The `processorThreadsToInterrupt` is iterated in the `shutdownAndWaitOrCallback()`,
and apparently one of the processors has finished successfully removing itself from the `processorThreadsToInterrupt` list.
This leads to the `ConcurrentModificationException` on the mentioned above iteration.
* Fix `SimpleMessageListenerContainer` making the `processorThreadsToInterrupt` as a `Collections.synchronizedList()`
* Wrap `processorThreadsToInterrupt` iteration in the `shutdownAndWaitOrCallback()` with a `synchronized (this.processorThreadsToInterrupt)`
(cherry picked from commit 6dc4457)
0 commit comments