Skip to content

KAFKA-19117: Client Throttling Log messages should be of log level - WARN (Java client) #19456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

siddharthaDevineni
Copy link

We experienced an outage in our application due to a built up Kafka lag, which we eventually discovered to be the problem with Kafka Clients being throttled.

Even when using the confluent cluster, the dashboard does point to exceeding the quota of the principal.

It will be nice, if the log message on the client side is a WARNING. This helps those who don't have visibility to cluster, and just look at the problem from the client side, setup alerts etc. (instead of enabling TRACE to figure out where the problem is)

NetworkClient#maybeThrottle in the class NetworkClient:

Changed from:
log.trace("Connection to node {} is throttled for {} ms until timestamp {}", nodeId, throttleTimeMs, now + throttleTimeMs);

to

log.warn("Connection to node {} is throttled for {} ms until timestamp {}", nodeId, throttleTimeMs, now + throttleTimeMs);

@github-actions github-actions bot added triage PRs from the community clients small Small PRs labels Apr 13, 2025
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants