lukecwik commented on a change in pull request #14991:
URL: https://github.com/apache/beam/pull/14991#discussion_r651321236



##########
File path: 
sdks/java/harness/src/test/java/org/apache/beam/fn/harness/BeamFnDataReadRunnerTest.java
##########
@@ -178,7 +179,7 @@ public void testCreatingAndProcessingBeamFnDataReadRunner() 
throws Exception {
               null /* beamFnTimerClient */,

Review comment:
       Your right that locking would be necessary since we wouldn't want to 
have stale reads so moving the locking out to reset() doesn't guarantee 
non-stale reads. In this case reset() is only writing which would be ok.
   
   Would be good to document the concurrency.




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