Github user vrozov commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/301#discussion_r59320592
--- Diff: engine/src/main/java/com/datatorrent/stram/stream/OiOStream.java
---
@@ -29,11 +29,12 @@
*
* @since 0.3.5
*/
-public class OiOStream implements Stream, SweepableReservoir
--- End diff --
It is necessary to maintain two different counts - one for Sink and one for
SweepableReservoir as they are reset separately. In case, OioStream implements
both Stream and SweepableReservoir, it will not be possible to distinguish
which count should be reset to 0, so either `Sink.getCount()` or
`SweepableReservoir.getCount()` would return a wrong result.
---
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.
---