New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-26308 Sum of multiplier of cost functions is not populated properly when we have a shortcut for trigger #3710
Conversation
…erly when we have a shortcut for trigger
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
...e-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
Show resolved
Hide resolved
+ "hbase.master.balancer.stochastic.regionCountCost to a positive value or default"); | ||
return false; | ||
} | ||
|
||
boolean balanced = (total / sumMultiplier < minCostNeedBalance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not update sumMultiplier but use it directly? It could be zero here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is moved up to the earlier stage before needsBalance is called so the short cut for idle server or cohosted replicas wouldn't get the wrong sum.
...e-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
Show resolved
Hide resolved
@Apache9 Any more concerned? I pushed the pre-commit check fixes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
No description provided.