Uploaded image for project: 'FUSE ESB'
  1. FUSE ESB
  2. ESB-724

ConcurrentModificationException in servicemix-camel under high load

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Resolved at Apache
    • Affects Version/s: 3.4.0.2-fuse
    • Fix Version/s: 3.4.0.3-fuse
    • Component/s: servicemix-camel
    • Labels:
      None

      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 attached test case to reproduce this issue.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                willem.jiang Willem Jiang
                Reporter:
                joe.luo Joe Luo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: