Github user chaithu14 commented on a diff in the pull request: https://github.com/apache/apex-core/pull/365#discussion_r74402121 --- Diff: engine/src/main/java/com/datatorrent/stram/plan/physical/StreamMapping.java --- @@ -285,6 +286,17 @@ private void redoMapping() if (finalUnifier == null) { finalUnifier = createUnifier(streamMeta, plan); } + // detach downstream from upstream operator when no final unifier existed previously + for (PTOutput unifierSource : unifierSources) { + Iterator<PTInput> sinks = unifierSource.sinks.iterator(); + while (sinks.hasNext()) { + PTInput sink = sinks.next(); + if (sink.target == doperEntry.first) { + doperEntry.first.inputs.remove(sink); + sinks.remove(); + } + } + } setInput(doperEntry.first, doperEntry.second, finalUnifier, (pks == null) || (pks.mask == 0) ? null : pks); --- End diff -- Same fix should be in m*n partitioning block also.
--- 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. ---