ShivsundarR commented on code in PR #16727:
URL: https://github.com/apache/kafka/pull/16727#discussion_r1705254620
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:
##########
@@ -520,31 +588,38 @@ private void handleShareAcknowledgeSuccess(Node
fetchTarget,
acknowledgeRequestState.onFailedAttempt(currentTimeMs);
if (response.error().exception() instanceof RetriableException
&& !closing) {
// We retry the request until the timer expires, unless we
are closing.
- } else {
- requestData.topics().forEach(topic ->
topic.partitions().forEach(partition -> {
- TopicIdPartition tip = new
TopicIdPartition(topic.topicId(),
- partition.partitionIndex(),
- metadata.topicNames().get(topic.topicId()));
-
metricsManager.recordFailedAcknowledgements(acknowledgeRequestState.getAcknowledgementsCount(tip));
-
acknowledgeRequestState.handleAcknowledgeErrorCode(tip, response.error());
- }));
-
- acknowledgeRequestState.processingComplete();
+ acknowledgeRequestState.retryRequest();
Review Comment:
Yes, thanks had missed that.
--
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]