Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8673

ConcurrentModificationException when creating dynamic routes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.14.1
    • Fix Version/s: 2.14.3, 2.15.2, 2.16.0
    • 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

            Activity

              People

              • Assignee:
                njiang Willem Jiang
                Reporter:
                dreske Dirk Reske
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: