soarez commented on code in PR #14903:
URL: https://github.com/apache/kafka/pull/14903#discussion_r1417124246


##########
server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java:
##########
@@ -513,4 +513,28 @@ public void close() throws InterruptedException {
         eventHandlerThread.join();
         log.info("closed event queue.");
     }
+
+    /**
+     * Useful for unit tests, where we need to speed the clock up until
+     * deferred events are ready to run.
+     */
+    public Object pendingDeferredEvent() {

Review Comment:
   Sure 👍 



##########
server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java:
##########
@@ -513,4 +513,28 @@ public void close() throws InterruptedException {
         eventHandlerThread.join();
         log.info("closed event queue.");
     }
+
+    /**
+     * Useful for unit tests, where we need to speed the clock up until
+     * deferred events are ready to run.
+     */
+    public Object pendingDeferredEvent() {

Review Comment:
   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: jira-unsubscr...@kafka.apache.org

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

Reply via email to