Github user zentol commented on the pull request:
https://github.com/apache/incubator-flink/pull/210#issuecomment-63479651
why additional changes? you can already retrieve the accumulators by using
the JobExecutionResult.
the only necessary change i see is removing the `execute()` within
`collect()` and `count()`, and now that you generate the ID's yourself
returning the ID, so the accumulators can be accessed later.
```
B = A.map(X);
String id1 = B.map(Y).collect();
String id2 = B.map(Z).collect();
JobExecutionResult jre = env.execute()
List l1 = jre.getAccumulatorResult(id1);
List l2 = jre.getAccumulatorResult(id2);
<some user code using l1 & l2>
```
why would this not be sufficient?
---
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.
---