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_r346233706
 
 

 ##########
 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:
   Ok, I get it know. Maybe move it to a separate commit with an appropriate 
commit message explaining this?

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