egor-ryashin commented on a change in pull request #6349: maintenance mode for 
Historical
URL: https://github.com/apache/incubator-druid/pull/6349#discussion_r221228846
 
 

 ##########
 File path: 
server/src/test/java/org/apache/druid/server/coordinator/DruidCoordinatorBalancerTester.java
 ##########
 @@ -19,20 +19,31 @@
 
 package org.apache.druid.server.coordinator;
 
+import com.google.common.primitives.Doubles;
 import org.apache.druid.client.ImmutableDruidServer;
 import org.apache.druid.java.util.common.StringUtils;
 import org.apache.druid.server.coordinator.helper.DruidCoordinatorBalancer;
 import org.apache.druid.timeline.DataSegment;
 
+import java.util.Comparator;
+
 public class DruidCoordinatorBalancerTester extends DruidCoordinatorBalancer
 {
+  public static final Comparator<ServerHolder> percentUsedComparator = 
(ServerHolder a, ServerHolder b) -> {
+    int c = Doubles.compare(a.getPercentUsed(), b.getPercentUsed());
 
 Review comment:
   :white_check_mark:

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