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

SimpleLRUCache is not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.20.5, 4.0-M3
    • None
    • camel-core
    • None
    • Unknown

    Description

      SimpleLRUCache is not thread-safe, but it is used in various multi-threaded places. 

      Examples are several IdempotentRepository implementations as:

      The problem with these is that the size limit of the cache is not respected (we have a memory leak).

      To reproduce the bug, the following sample project can be used: https://github.com/alex-nt/issues-java/tree/main/camel/kafka-idempotent

      Discussion about the issue can be read here: https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/Kafka.20idempotent.20Repository.20not.20threadsafe

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex-nt Alexandru Neaţă
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: