m1a2st opened a new pull request, #23348:
URL: https://github.com/apache/kafka/pull/23348

   Follow-up to (#23227).
   
   Before bootstrap DNS resolution completes, 
`coordinatorRequestManager.coordinator()` is empty, causing the 
coordinator-unknown path in `maximumTimeToWait()` to return 
`heartbeatRequestState.heartbeatIntervalMs()`. However, the heartbeat interval 
is initialized to 0 and is not updated until the first heartbeat response is 
received. As a result, a member in the JOINING state reports 
`maximumTimeToWait() == 0`.
   
   Since the application thread's poll timeout is bounded by this value, both 
the application and network threads can busy-spin until the coordinator is 
discovered.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to