davsclaus commented on code in PR #30304:
URL: https://github.com/apache/camel/pull/30304#discussion_r4611161190


##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/DelayProcessorSupport.java:
##########
@@ -130,6 +140,7 @@ protected boolean processDelay(Exchange exchange, 
AsyncCallback callback, long d
                 return false;
             } catch (RejectedExecutionException e) {
                 // we were not allowed to run the ProcessCall, so need to 
decrement the counter here
+                scheduledCalls.remove(call);
                 delayedCount.decrementAndGet();

Review Comment:
   Fixed: `delayedCount` is decremented only after a successful claim.
   
   _Claude Code on behalf of davsclaus_



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to