Github user zentol commented on the pull request:

    https://github.com/apache/incubator-flink/pull/210#issuecomment-63363046
  
    Does this work when using `count()` or `collect()` multiple times in the 
same plan? 
    
    you use `this.getExecutionEnvironment().getIdString()` to identify the 
accumulators, and as far as i see this value is the same for all operators in a 
plan. As such, multiple usages of `count()` will return the sum count of all 
datasets, and collect() will throw an exception since the same key is used when 
calling `getRuntimeContext().addAccumulator(id, accumulator)`


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