apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chaithu14 <...@git.apache.org>
Subject [GitHub] apex-core pull request #365: APEXCORE-494 Fix scale up from single partition...
Date Thu, 11 Aug 2016 10:54:36 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message