-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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] #31390 emit watermark with empty source #31391
Conversation
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment |
R: @Abacn The PVR test seems to be stuck at |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Hm, it passed on second run. |
Thanks, taking a look At the same time, have a couple of questions (not directly related to the change)
|
The fix in #30969 was related, but different. Source can be empty temporarily or finally. The fact, that the source is empty for ever is signaled by watermark going to infinity. Then the split can be closed (and this results in watermark move, because closed split does not hold watermark anymore). This PR fixes the other case - when the source is not emitting any data, but does not move watermark to infinity, but rather uses some idle source policy. Before this PR no watermark was emitted downstream until at least one element was emitted from the source. This is fixed now.
All these fixes relate to Flink only. These issues were introduced by source refactoring in FlinkRunner, so nothing that can be extended to a general case. |
Closes #31390
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.