infraio commented on a change in pull request #1243: HBASE-23944 The method 
setClusterLoad of SimpleLoadBalancer is incorr…
URL: https://github.com/apache/hbase/pull/1243#discussion_r388758807
 
 

 ##########
 File path: 
hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/BalancerTestBase.java
 ##########
 @@ -402,13 +402,13 @@ protected void updateLoad(final Map<ServerName, 
ServerAndLoad> map,
     return servers;
   }
 
-  protected HashMap<TableName, TreeMap<ServerName, List<RegionInfo>>> 
mockClusterServersWithTables(Map<ServerName, List<RegionInfo>> clusterServers) {
-    HashMap<TableName, TreeMap<ServerName, List<RegionInfo>>> result = new 
HashMap<>();
+  protected Map<TableName, Map<ServerName, List<RegionInfo>>> 
mockClusterServersWithTables(Map<ServerName, List<RegionInfo>> clusterServers) {
 
 Review comment:
   Why change TreeMap to Map?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to