MINOR: Document connections.max.idle.ms dependency on max.poll.interval.ms for Classic consumer#22752
Open
frankvicky wants to merge 3 commits into
Open
MINOR: Document connections.max.idle.ms dependency on max.poll.interval.ms for Classic consumer#22752frankvicky wants to merge 3 commits into
frankvicky wants to merge 3 commits into
Conversation
…al.ms for Classic consumer
chia7712
reviewed
Jul 3, 2026
| } | ||
| long connectionsMaxIdleMs = getLong(CONNECTIONS_MAX_IDLE_MS_CONFIG); | ||
| int maxPollIntervalMs = getInt(MAX_POLL_INTERVAL_MS_CONFIG); | ||
| if (connectionsMaxIdleMs >= 0 && connectionsMaxIdleMs < maxPollIntervalMs) { |
Member
There was a problem hiding this comment.
Should the warning cover rebalance.timeout.ms?
Contributor
Author
There was a problem hiding this comment.
Good question. rebalance.timeout.ms isn't registered in ConsumerConfig — it's a Connect-only config.
I'm not sure if we should deal it in this PR.
Member
There was a problem hiding this comment.
Or we could add similar log warnings to DistributedConfig?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the Classic consumer,
connections.max.idle.mscan cause thecoordinator connection to be reaped during a long rebalance if
max.poll.interval.msis higher than it. When this happens, in-flightJoinGrouprequests are cancelled and the group cycles throughconnection reaping, which prolongs or destabilizes the rebalance —
particularly in large consumer groups where the coordinator waits longer
for all members to rejoin.
Reviewers: Chia-Ping Tsai chia7712@gmail.com