lukecwik commented on pull request #11454:
URL: https://github.com/apache/beam/pull/11454#issuecomment-619274251


   > > Testing that output is only produced after the DoFn has done the claim 
call makes a lot of sense and ensuring that only the part that has been claimed 
was produced as output would cover correctness.
   > 
   > Thanks for the answer (again). It does not seem trivial to be able to test 
this from the outside of the DoFn without having to play with DoFnRunners and 
friends. Or is there something that would help to do this?
   
   Users should rely on PAssert/TestStream for correctness testing. As a 
simpler test, if the user doesn't use 
StartBundleContext/FinishBundleContext/ProcessContext, it should be easy for 
the user to instantiate their DoFn and call the methods on it directly if needs 
be.
   
   Runners that support dynamic work rebalancing can tell users that their SDFs 
aren't behaving well by seeing that the SDF is not splitting or making a lot of 
unbalanced splits.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to