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

   A consumer group picks its server assignor by member vote. With a tied vote, 
the winner was whichever entry the vote map listed first. In 
`hasPreferredServerAssignorChanged`, the heartbeat path computes the winner 
twice to detect a change of preferred assignor, once from the stored 
TimelineHashMap and once from a HashMap copy. The two maps can list tied 
entries in different orders, so plain heartbeats looked like an assignor 
change. 
   
   This fix adds a shared vote comparator. The assignor with the most votes 
wins. On a tie, the assignor whose name sorts first wins. 


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