Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ConcurrentModificationException in SimpleBrokerMessageHandler [SPR-12665] #17264
During invocation of SimpMessageSendingOperations::convertAndSend method ConcurrentModificationException occures. It happens very rarely (I found out about this bug by checking logs from production, I haven't seen it in application), probably when invocation of this method happens simultaneously with closing webSocket on a client.
Here's a stack:
Can it be related to this #16377 bug?
Affects: 4.1 GA
Rossen Stoyanchev commented
Although DefaultSubscriptionRegistry maintained separate "update" and "access" caches to ensure that findSubscriptions returns a safe to iterate map, there was a bug in the addSubscriptions method that mistakenly used the original map for the "update" cache. This has been fixed.