scwhittle commented on code in PR #32456:
URL: https://github.com/apache/beam/pull/32456#discussion_r1768197756
##########
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/ReadFromKafkaDoFn.java:
##########
@@ -460,7 +460,28 @@ public ProcessContinuation processElement(
}
return ProcessContinuation.resume();
}
+ long skippedRecords = 0L;
+ final Stopwatch sw = Stopwatch.createStarted();
Review Comment:
move this outside the while(true) loop
we're only going to be skipping at the beginning and we don't want the
overhead per batch.
--
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]