AndrewJSchofield commented on code in PR #14835:
URL: https://github.com/apache/kafka/pull/14835#discussion_r1411254378
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:
##########
@@ -800,6 +811,11 @@ public void resetTimer() {
this.timer.reset(autoCommitInterval);
}
+ public long remainingMs(final long currentTimeMs) {
+ this.timer.update(currentTimeMs);
+ return this.timer.remainingMs();
+ }
+
Review Comment:
True. I think it's an atomic operation which is updating the timer to a more
current value.
--
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]