Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/kip-932' into AKCORE-253
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivsundarR committed Jul 9, 2024
2 parents 97c1fb7 + dfcf22c commit f8e6d43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ private void handleShareAcknowledgeFailure(Node fetchTarget,
metadata.topicNames().get(topic.topicId()));
metricsManager.recordFailedAcknowledgements(acknowledgeRequestState.getInFlightAcknowledgementsCount(tip));
acknowledgeRequestState.handleAcknowledgeErrorCode(tip, Errors.forException(error));
acknowledgeRequestState.inFlightAcknowledgements.remove(tip);
}));
} finally {
log.debug("Removing pending request for node {} - failed", fetchTarget);
Expand All @@ -599,7 +598,6 @@ private void handleShareAcknowledgeCloseSuccess(Node fetchTarget,
metricsManager.recordFailedAcknowledgements(acknowledgeRequestState.getInFlightAcknowledgementsCount(tip));
}
acknowledgeRequestState.handleAcknowledgeErrorCode(tip, Errors.forCode(partition.errorCode()));
acknowledgeRequestState.inFlightAcknowledgements.remove(tip);
}));

metricsManager.recordLatency(resp.requestLatencyMs());
Expand All @@ -625,7 +623,6 @@ private void handleShareAcknowledgeCloseFailure(Node fetchTarget,
metadata.topicNames().get(topic.topicId()));
metricsManager.recordFailedAcknowledgements(acknowledgeRequestState.getInFlightAcknowledgementsCount(tip));
acknowledgeRequestState.handleAcknowledgeErrorCode(tip, Errors.forException(error));
acknowledgeRequestState.inFlightAcknowledgements.remove(tip);
}));
} finally {
log.debug("Removing pending request for node {} - failed", fetchTarget);
Expand Down Expand Up @@ -839,10 +836,6 @@ void retryRequest() {
inFlightAcknowledgements.clear();
}

boolean isIncompleteMapEmpty() {
return incompleteAcknowledgements.isEmpty();
}

boolean maybeExpire() {
return numAttempts > 0 && isExpired();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static void main(String[] args) {
Map<MetricName, ? extends Metric> metrics = null;
if (options.printMetrics())
metrics = shareConsumer.metrics();
shareConsumer.commitAsync();
shareConsumer.close();

// print final stats
Expand Down

0 comments on commit f8e6d43

Please sign in to comment.