Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
3.20.5, 4.0-M3
-
None
-
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
- is fixed by
-
CAMEL-19295 Concurrency issues with dynamicMap in AbstractDynamicRegistry
- Resolved