[ 
https://issues.apache.org/jira/browse/HBASE-5231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190945#comment-13190945
 ] 

Zhihong Yu edited comment on HBASE-5231 at 1/23/12 5:16 PM:
------------------------------------------------------------

I think we can do. 
regarding to log "Done. Calculated a load balance in" , we can move out 
"balanceCluster".
move to below code ?
{code}
+      for (Map<ServerName, List<HRegionInfo>> assignments : 
assignmentsByTable.values()) {
+        List<RegionPlan> partialPlans = 
this.balancer.balanceCluster(assignments);
+        if (partialPlans != null) plans.addAll(partialPlans);
       }
{code}
                
      was (Author: sunnygao):
    I think we can do. 
regarding to log "Done. Calculated a load balance in" , we can move out 
"balanceCluster".
move to below code ?

+      for (Map<ServerName, List<HRegionInfo>> assignments : 
assignmentsByTable.values()) {
+        List<RegionPlan> partialPlans = 
this.balancer.balanceCluster(assignments);
+        if (partialPlans != null) plans.addAll(partialPlans);
       }
                  
> Backport HBASE-3373 (per-table load balancing) to 0.92
> ------------------------------------------------------
>
>                 Key: HBASE-5231
>                 URL: https://issues.apache.org/jira/browse/HBASE-5231
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Zhihong Yu
>             Fix For: 0.92.1
>
>         Attachments: 5231.txt
>
>
> This JIRA backports per-table load balancing to 0.90

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to