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_r346190958
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/TaskMailboxImpl.java
##########
@@ -107,9 +107,12 @@ public boolean hasMail() {
@Override
public Optional<Mail> tryTake(int priority) {
- Optional<Mail> head = tryTakeFromBatch();
- if (head.isPresent()) {
- return head;
+ Mail head = takeOrNull(batch, priority);
Review comment:
Missing test coverage?
----------------------------------------------------------------
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