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

    https://github.com/apache/incubator-apex-core/pull/185#discussion_r48212355
  
    --- 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 --
    
    This is because if there is a THREAD_LOCAL for the loop, it would end up 
being an infinite recursive call within the thread.  However, it's technically 
possible to have THREAD_LOCAL for part of the cycle.  I have reopened this 
JIRA: https://issues.apache.org/jira/browse/APEXCORE-262.  We will tackle this 
in the future.


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