Github user arunmahadevan commented on a diff in the pull request: https://github.com/apache/storm/pull/2090#discussion_r113368411 --- Diff: storm-client/src/jvm/org/apache/storm/windowing/TimeTriggerPolicy.java --- @@ -62,7 +63,9 @@ public void reset() { @Override public void start() { - executorFuture = executor.scheduleAtFixedRate(newTriggerTask(), duration, duration, TimeUnit.MILLISECONDS); + // initial delay is slightly less than the duration so that the initial tuples wont't expire due to time drift + long initialDelay = duration - Math.min((long) (duration * .1), 100); + executorFuture = executor.scheduleAtFixedRate(newTriggerTask(), initialDelay, duration, TimeUnit.MILLISECONDS); --- End diff -- Subsequent scheduling will happen after "duration" which would be the window sliding interval.
--- 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. ---