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

Concurrency issues with dynamicMap in AbstractDynamicRegistry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.14.2
    • 3.21.0, 4.0-RC1, 4.0.0
    • camel-core
    • None
    • Unknown

    Description

      Hello everyone,

      We have detected concurrency issues related to the dynamicMap attribute of the AbstractDynamicRegistry class. By default, dynamicMap is an object of the SimpleLRUCache class, which inherits from LinkedHashMap.

      We have resolved the issue by creating our own LRUCacheFactory which returns a thread-safe synchronized map backed by the specified map.

      Could you please review it?

      Attachments

        1. OOMECamelEndpointRegistry.java
          3 kB
          Alan Dávila

        Issue Links

          Activity

            People

              rhuanrocha Rhuan Rocha
              adavila Alan Dávila
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: