Sigma-Ma opened a new pull request, #8754:
URL: https://github.com/apache/hbase/pull/8754

   JIRA: https://issues.apache.org/jira/browse/HBASE-30405.
   
   ## What changes were proposed in this pull request?
   
   Compare the current server’s locality with the selected target before 
generating a locality candidate. Skip regions already at the best locality, 
including after simulated region moves.
   
   ## Why are the changes needed?
   When multiple servers have the same locality, the selected target may differ 
from the current server. Comparing only server indices can produce move or swap 
candidates without improving that region’s locality.
   
   ## How was this patch tested?
   
   ```bash
   mvn -B -ntp -pl hbase-balancer -am -PsingleJVMTests 
-Dtest=TestLocalityBasedCandidateGenerator,TestStochasticLoadBalancer,TestBaseLoadBalancer,TestStochasticLoadBalancerBalanceCluster
 -Dsurefire.failIfNoSpecifiedTests=false -Dsurefire.rerunFailingTestsCount=0 
test


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to