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

    https://github.com/apache/incubator-apex-core/pull/185#discussion_r48282574
  
    --- Diff: 
engine/src/main/java/com/datatorrent/stram/plan/logical/LogicalPlan.java ---
    @@ -1495,6 +1509,11 @@ private void validateThreadLocal(OperatorMeta om) {
           return;
         }
     
    +    if (om.getOperator() instanceof Operator.DelayOperator) {
    +      String msg = String.format("Locality %s invalid for delay operator 
%s", Locality.THREAD_LOCAL, om);
    +      throw new ValidationException(msg);
    --- End diff --
    
    @davidyan74 : The thread_local should be valid till Delay Operator. So even 
if there is loop, the thread_local will be valid only delay operator as the 
output of delay operator has to go in next window.


---
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