New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-19109][task] Ignore isLoopRunning in MailboxExecutor.isIdle #13305
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 6da9dbc (Wed Sep 02 11:12:30 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
6da9dbc
to
db800b0
Compare
flink-tests/src/test/java/org/apache/flink/test/streaming/api/FileReadingWatermarkITCase.java
Outdated
Show resolved
Hide resolved
...java/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxExecutorImpl.java
Show resolved
Hide resolved
flink-tests/src/test/java/org/apache/flink/test/streaming/api/FileReadingWatermarkITCase.java
Outdated
Show resolved
Hide resolved
I've added 2 fixup commits, can you take a look @pnowojski, @alpinegizmo? |
LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you squash the fixup commits?
When closing, this flag is set, but mailbox can still contain (and receive new) mails (e.g. from timers) that should be processed. In particular, this check currently prevents periodic watermarks from being emitted.
b37d13c
to
380b8d7
Compare
Done. |
What is the purpose of the change
Currently,
MailboxExecutor.isIdle
checks whether the mailbox loop is running or not.If not,
ContinuousFileReaderOperator
continues file processing loop without going through the mailbox.However, the mailbox can still contain (and receive new) mails (e.g. from timers) that should be processed.
In particular, this check currently prevents periodic watermarks from being emitted.
This PR simply removes this check.
Verifying this change
FileReadingWatermarkITCase
ContinuousFileReaderOperator
(e.g.ContinuousFileProcessingTest
)Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation