kfaraz commented on code in PR #18255:
URL: https://github.com/apache/druid/pull/18255#discussion_r2207926748


##########
server/src/test/java/org/apache/druid/server/metrics/LatchableEmitter.java:
##########
@@ -60,7 +60,13 @@ public class LatchableEmitter extends StubServiceEmitter
    */
   private final ScheduledExecutorService conditionEvaluateExecutor;
   private final Set<WaitCondition> waitConditions = new HashSet<>();
-  private final ReentrantReadWriteLock eventReadWriteLock = new 
ReentrantReadWriteLock(true);
+
+  private final ReentrantLock eventProcessingLock = new ReentrantLock();
+
+  /**
+   * Lists of events that have already been processed by {@link 
#evaluateWaitConditions(Event)}.
+   */
+  private final List<Event> processedEvents = new ArrayList<>();

Review Comment:
   Thanks for catching this, let me clean this up.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to