flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljoscha <...@git.apache.org>
Subject [GitHub] flink issue #2093: [FLINK-3714] Add Support for "Allowed Lateness"
Date Mon, 13 Jun 2016 13:47:54 GMT
Github user aljoscha commented on the issue:

    I had some inline comments.
    One other thing I would like to see changed is moving the logic that checks whether to
do cleanup from `cleanup()` to the call-site. So in `processElement()` it would be:
    if (combinedTriggerResult.isPurge) {
    } else {
    The reason for this is that the check in `cleanup()` for whether a timer is a cleanup
timer does not take into account the event-time/processing-time split: if a processing-time
timer fires on exactly the cleanup time of an event-time window this would also trigger cleanup.
 The code in `processTriggersFor` (which, by the way can be moved back into `processWatermark()`
now that you refactored this special event-time trigger hack) would have this check:
    if (assigner.isEventTime() && isCleanupTimer(...))
    while the code in `trigger()` would be
    if (!assigner.isEventTime() && isCleanupTimer(...))

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message