AHeise commented on a change in pull request #9564: [FLINK-12481][FLINK-12482][FLINK-12958] Streaming runtime: integrate mailbox for timer triggers, checkpoints and AsyncWaitOperator URL: https://github.com/apache/flink/pull/9564#discussion_r319426089
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java ########## @@ -428,6 +429,10 @@ public final void invoke() throws Exception { // See FLINK-7430 isRunning = false; } + MailboxExecutor mainMailboxExecutor = mailboxProcessor.getMainMailboxExecutor(); Review comment: I'd rather add a method drain to mailboxProcessor that does the following lines. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services