Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-558

NormalizedMessageImpl should use the ConcurrentHashMap to avoid the ConcurrentModificationException

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      Under high load when the timing is just right our camel routes are getting ConcurrentModificationExceptions. We have tracked this down to NormalizedMessageImpl.java in servicemix-core. Specifically in the createPropertiesMap method on line 295. There's a comment that Normalized exchanges do not need to be thread-safe but we are definitely seeing issues with this. We changed the use of HashMap to ConcurrentHashMap and do not see the problem anymore.

      Please see more information here
      http://fusesource.com/issues/browse/ESB-724

      Attachments

        1. SMXCOMP-558.patch
          1 kB
          Willem Jiang
        2. SMXCOMP-558-smx3.2.patch
          1 kB
          Willem Jiang

        Activity

          People

            gertvanthienen Gert Vanthienen
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: