jihoonson edited a comment on issue #9701: DruidLeaderClient always thinks the 
first node returned from DruidNodeDiscovery is the leader
URL: https://github.com/apache/druid/issues/9701#issuecomment-613776169
 
 
   When it tries to follow redirects, [it checks the current known 
leader](https://github.com/apache/druid/blob/cda9f41e69ebc0513782805fca9ead378c1910ab/server/src/main/java/org/apache/druid/discovery/DruidLeaderClient.java#L282-L294)
 which calls `pickOneHost()`. Before #9481, this function used to use 
`ServerDiscoverySelector` which returns the known leader and fall back to 
`DruidNodeDiscovery` when there is no known leader, but now it always returns 
the first node from `DruidNodeDiscovery`.
   
   
https://github.com/apache/druid/blob/cda9f41e69ebc0513782805fca9ead378c1910ab/server/src/main/java/org/apache/druid/discovery/DruidLeaderClient.java#L297-L307

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to