Github user tweise commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/314#discussion_r60839381
--- Diff:
engine/src/main/java/com/datatorrent/stram/plan/physical/PhysicalPlan.java ---
@@ -979,6 +998,14 @@ public void deployChanges() {
this.undeployOpers.removeAll(newOpers.keySet());
//make sure all the new operators are included in deploy operator list
this.deployOpers.addAll(this.newOpers.keySet());
+ // redeploy dependencies of the new operators excluding the new
operators themselves
+ Set<PTOperator> ndeps = getDependents(newOpers.keySet());
+ ndeps.removeAll(newOpers.keySet());
+ // don't redeploy operators already going to be undeployed
+ ndeps.removeAll(this.undeployOpers);
+ // redeploy remaining dependencies
+ this.undeployOpers.addAll(ndeps);
+ this.deployOpers.addAll(ndeps);
--- End diff --
This shouldn't be required. Next line already includes dependencies.
---
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.
---