-
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
Fix never trigger #33989
Fix never trigger #33989
Conversation
a0bb9b4
to
f6c360e
Compare
R: @kennknowles |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
@@ -320,7 +320,10 @@ private <SideWindowT extends BoundedWindow> Windmill.GlobalDataRequest buildGlob | |||
.build()) | |||
.setExistenceWatermarkDeadline( | |||
WindmillTimeUtils.harnessToWindmillTimestamp( | |||
sideWindowStrategy.getTrigger().getWatermarkThatGuaranteesFiring(sideInputWindow))) | |||
sideWindowStrategy |
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.
I think that triggers cannot actually give a tight bound. You either have to change all of them to return maxTimestamp + allowedLateness
or just take the minimum here. I would suggest keeping it simple and doing the minimum here. In fact, I would even support deleting the method from Trigger
and doing all of the logic here, since it is really just a one-off special case for AfterWatermark / DefaultTrigger
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.
All good to me. Might want a TestStream test that reproduces the issue and protects against future bugs.
A bit tricky to structure this? The problem with TestStream is that everything will be produced after advanceWatermarkToInfinity is called, and I believe will be produced in the correct windows. Will see what I can do. |
@kennknowles Added a TestStream test |
No description provided.