jrmccluskey commented on code in PR #17716:
URL: https://github.com/apache/beam/pull/17716#discussion_r877546580


##########
sdks/go/test/integration/primitives/checkpointing.go:
##########
@@ -68,19 +68,24 @@ func (fn *selfCheckpointingDoFn) SplitRestriction(_ []byte, 
rest offsetrange.Res
 func (fn *selfCheckpointingDoFn) ProcessElement(rt *sdf.LockRTracker, _ 
[]byte, emit func(int64)) sdf.ProcessContinuation {
        position := rt.GetRestriction().(offsetrange.Restriction).Start
 
+       counter := 0
        for {
                if rt.TryClaim(position) {
                        // Successful claim, emit the value and move on.
                        emit(position)
                        position++
-                       return sdf.ResumeProcessingIn(1 * time.Second)
+                       counter++
                } else if rt.GetError() != nil || rt.IsDone() {
                        // Stop processing on error or completion

Review Comment:
   Done.



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to