KacT9H commented on code in PR #14424:
URL: https://github.com/apache/camel/pull/14424#discussion_r1633353329


##########
core/camel-support/src/main/java/org/apache/camel/support/cache/SimpleLRUCache.java:
##########
@@ -248,6 +270,24 @@ private Entry<K, V> nextOldestChange() {
         return oldest;
     }
 
+    /**
+     * Removes duplicates from the queue of changes.
+     */
+    private void compressChanges() {

Review Comment:
   Does something guarantee that this method threadsafe? Seems, the cache state 
might be broken, if the 2nd thread reads `this.lastChanges` at the moment when 
1st thread is compressing changes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to