You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "devtrace404 (via GitHub)" <gi...@apache.org> on 2026/01/25 02:21:33 UTC
Re: [PR] KAFKA-16799: Reduce log level for 'Node is not ready' message to TRACE [kafka]
devtrace404 commented on code in PR #21198:
URL: https://github.com/apache/kafka/pull/21198#discussion_r2724783913
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/NetworkClientDelegate.java:
##########
@@ -221,13 +238,24 @@ boolean doSend(final UnsentRequest r, final long currentTimeMs) {
log.debug("No broker available to send the request: {}. Retrying.", r);
return false;
}
+
+ // Check if we're still in backoff period for this node
+ long backoffDelay = getBackoffDelay(node, currentTimeMs);
+ if (backoffDelay > 0) {
+ // Still in backoff period, skip retry
+ return false;
Review Comment:
@kirktrue @lianetm That is a fair point. Since the `ready()` method returns false for various conditions (metadata update in progress, too many in-flight requests, connecting state) and these shouldn't all be treated uniformly with backoff. They could be transient and must not have delay. I have eliminated the log spam with TRACE logs. Let me know if that makes sense.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org