goalfull commented on PR #6619:
URL: https://github.com/apache/kafka/pull/6619#issuecomment-2165641242

   > If a node is currently throttled, we should take it out of the running for 
`leastLoadedNode`. Additionally, current logic seems to favor connecting to new 
nodes rather than using existing connections which have one or more in flight 
requests. The javadoc is slightly vague about whether this is expected, but it 
seems not.
   > 
   > ### Committer Checklist (excluded from commit message)
   > * [ ]  Verify design and implementation
   > * [ ]  Verify test coverage and CI build status
   > * [ ]  Verify documentation (including upgrade notes)
   
   The leastLoadedNode() function has a bug during the consumer process 
starting period. The function sendMetadataRequest() called by 
getTopicMetadataRequest() uses a random node which maybe faulty since every 
node‘s state recorded in the client thread is not ready yet. It happened in my 
production environment during my consumer thread restarting and meanwhile one 
of the KAFKA server node is dead. What do you think?


-- 
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