Github user satishd commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2090#discussion_r113366037
  
    --- Diff: 
storm-client/src/jvm/org/apache/storm/windowing/TimeTriggerPolicy.java ---
    @@ -109,13 +112,22 @@ private Runnable newTriggerTask() {
             return new Runnable() {
                 @Override
                 public void run() {
    +                // compute the current trigger timestamp based on 
prevTriggerTimestamp,
    +                // since the calculation based on System.currentTimeMillis 
might have a slight drift
    +                long now = System.currentTimeMillis();
    +                long triggerTs = prevTriggerTimestamp == 0 ? now : 
prevTriggerTimestamp + duration;
    +                prevTriggerTimestamp = triggerTs;
    +                if (Math.abs(triggerTs - now) > 1000) {
    --- End diff --
    
    Did we think about an option to execute a bolt in a different thread to 
avoid timing issues in trigger because of user code?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to