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

ConcurrentModificationException when creating dynamic routes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.14.3, 2.15.2, 2.16.0
    • camel-core
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: