Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.14.1
-
None
-
Unknown
Description
This ticket refers to CAMEL-7836.
The fix seems to be slightly wrong. (We still geht the ConcurrentModificationException)
The cause seems to be in removeRouteCollection and addRouteCollection. See here:
void removeRouteCollection(Collection<Route> routes) { synchronized (routes) { this.routes.removeAll(routes); } }
Here the code synchronizes on the routes parameter, but should be on this.routes (as it getRoutes() does). The same in addRouteCollection().
Attachments
Issue Links
- is related to
-
CAMEL-7836 ConcurrentModificationException when creating dynamic routes
- Resolved