Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.14.1
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity: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
-