lianetm commented on code in PR #16031:
URL: https://github.com/apache/kafka/pull/16031#discussion_r1626513292
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:
##########
@@ -875,8 +872,12 @@ private void handleClientResponse(final ClientResponse
response,
abstract void onResponse(final ClientResponse response);
- boolean retryTimeoutExpired(long currentTimeMs) {
- return expirationTimeMs.isPresent() && expirationTimeMs.get() <=
currentTimeMs;
+ /**
+ * If at least one attempt has been sent, and the user-provided
timeout has elapsed, consider the
+ * request as expired.
+ */
+ boolean retryTimeoutExpired() {
Review Comment:
name nit: this is not only about timeout expired anymore, it considers if
the request was sent (significant conceptual diff I would say), so what about
aligning the name? (`sentAndExpired` maybe, or whatever you prefer to better
reflect what it actually checks now)
--
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]