QiuMM commented on issue #6790: chooseBestServer bug in CostBalancerStrategy
URL: 
https://github.com/apache/incubator-druid/issues/6790#issuecomment-452286254
 
 
   @licl2014 I know, but you have add below code, so there is no need to do 
anymore.
   ```java
   if (bestServers.stream().allMatch(server -> server.lhs != 
Double.POSITIVE_INFINITY)) {
      // Randomly choose a server from the best servers
      bestServer = 
bestServers.get(ThreadLocalRandom.current().nextInt(bestServers.size()));
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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