orpiske commented on code in PR #10010:
URL: https://github.com/apache/camel/pull/10010#discussion_r1186844510


##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultInflightRepository.java:
##########
@@ -67,28 +67,28 @@ public void remove(Exchange exchange) {
 
     @Override
     public void add(Exchange exchange, String routeId) {
-        AtomicInteger existing = routeCount.get(routeId);
+        LongAdder existing = routeCount.get(routeId);
         if (existing != null) {
-            existing.incrementAndGet();
+            existing.increment();
         }
     }
 
     @Override
     public void remove(Exchange exchange, String routeId) {
-        AtomicInteger existing = routeCount.get(routeId);
+        LongAdder existing = routeCount.get(routeId);
         if (existing != null) {
-            existing.decrementAndGet();
+            existing.increment();

Review Comment:
   @davsclaus i think the bug could be here. It should decrement, but it is 
incrementing.



-- 
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