hachikuji commented on a change in pull request #8702:
URL: https://github.com/apache/kafka/pull/8702#discussion_r428389929
##########
File path:
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java
##########
@@ -565,8 +566,8 @@ private void recordRebalanceFailure() {
// Note that we override the request timeout using the rebalance
timeout since that is the
// maximum time that it may block on the coordinator. We add an extra
5 seconds for small delays.
-
- int joinGroupTimeoutMs = Math.max(rebalanceConfig.rebalanceTimeoutMs,
rebalanceConfig.rebalanceTimeoutMs + 5000);
+ int joinGroupTimeoutMs = Math.max(client.defaultRequestTimeoutMs(),
Review comment:
The previous max check was wrong, but an alternative here is to use
rebalanceTimeout + 5s in all cases regardless of the request timeout.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]