Github user vrozov commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/301#discussion_r59321286
  
    --- 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 --
    
    Let's say upstream operator puts n tuples into OiOStream, both 
`Sink.getCount(true)` and `SweepableReservoir.getCount(true)` should return n 
and reset count to 0. If there is only one count, only one call (whichever 
comes first) would return n, the second one would return 0.


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