Rafael Fernandez created BEAM-2710:
--------------------------------------

             Summary: Outputing "finished" when processing is not called in 
ParDoTest.TestDoFn leads to unexpected ElementCount
                 Key: BEAM-2710
                 URL: https://issues.apache.org/jira/browse/BEAM-2710
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
            Reporter: Rafael Fernandez
            Assignee: Davor Bonaci
            Priority: Trivial


While it is legal to call finishBundle even if processElement was not called 
(say, when processing an empty input PCollection), it's best to guard against 
this case if we're examining correctness of outputs. Specifically, I was 
surprised at seeing ElementCount = 1 instead of 0 -- essentially, "finished" 
was being counted here.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to