gnodet commented on code in PR #14222:
URL: https://github.com/apache/camel/pull/14222#discussion_r1609574755


##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/resequencer/ResequencerEngine.java:
##########
@@ -110,6 +120,30 @@ public synchronized int size() {
         return sequence.size();
     }
 
+    public void waitUntil(Predicate<Sequence<?>> pred) throws 
InterruptedException {
+        CountDownLatch latch;
+        synchronized (this) {

Review Comment:
   You're right.  I've added some comments.  However, I'm not sure there's a 
work around.  The conditions need to be evaluated while holding a lock on the 
resequencer engine, so if that lock is held by another thread, it WILL deadlock 
for sure.



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