Github user arunmahadevan commented on a diff in the pull request: https://github.com/apache/storm/pull/2090#discussion_r118846419 --- Diff: storm-client/src/jvm/org/apache/storm/windowing/TimeEvictionPolicy.java --- @@ -41,8 +47,10 @@ public TimeEvictionPolicy(int windowLength) { public Action evict(Event<T> event) { long now = evictionContext == null ? System.currentTimeMillis() : evictionContext.getReferenceTime(); long diff = now - event.getTimestamp(); - if (diff >= windowLength) { + if (diff >= (windowLength + delta)) { return Action.EXPIRE; + } else if (diff < 0) { // do not process events beyond current ts + return Action.KEEP; --- End diff -- yes, ideally events should be ordered since its processing time, unless `System.currentTimeMillis` goes backwards, so I assumed it could be out of order.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---