pnowojski commented on a change in pull request #10177: [FLINK-14747] Fix 
performance regression with latest changes to Mailbox
URL: https://github.com/apache/flink/pull/10177#discussion_r346187113
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/TaskMailboxImpl.java
 ##########
 @@ -165,7 +164,8 @@ public boolean createBatch() {
        @Override
        public Optional<Mail> tryTakeFromBatch() {
                checkIsMailboxThread();
-               return Optional.ofNullable(takeOrNull(batch, MIN_PRIORITY));
+               checkTakeStateConditions();
+               return Optional.ofNullable(batch.pollFirst());
 
 Review comment:
   Are those lines related to the performance fix? A refactor or a bug fix?

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


With regards,
Apache Git Services

Reply via email to