-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-23078 BaseLoadBalancer should consider region replicas when ran… #663
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
Conversation
saintstack
left a comment
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.
Nice cleanup.
How you think this changes the behavior of the balancer?
| TableName tableName = regionInfo.getTable(); | ||
| if (services != null && | ||
| services.getTableDescriptors().get(tableName).getRegionReplication() > 1) { | ||
| hasRegionReplica = true; |
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.
Good
|
💔 -1 overall
This message was automatically generated. |
e8de3bd to
f7ee213
Compare
| for (RegionInfo regionInfo : regions) { | ||
| TableName tableName = regionInfo.getTable(); | ||
| if (services != null && | ||
| services.getTableDescriptors().get(tableName).getRegionReplication() > 1) { |
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.
I think the descriptors are anyway cached right? If so good.
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.
Updated in new patch. Will only getTableDescriptors once now.
|
Looks good to me. |
|
💔 -1 overall
This message was automatically generated. |
f7ee213 to
ae95608
Compare
|
🎊 +1 overall
This message was automatically generated. |
ae95608 to
74514a6
Compare
|
Add the region replica UT back. |
|
💔 -1 overall
This message was automatically generated. |
…domAssignment and roundRobinAssignment
74514a6 to
9cd844b
Compare
|
💔 -1 overall
This message was automatically generated. |
|
The failed ut not related and passed. |
…domAssignment and roundRobinAssignment (#663) Signed-off-by: stack <stack@apache.org>
…domAssignment and roundRobinAssignment (#663) Signed-off-by: stack <stack@apache.org>
…domAssignment and roundRobinAssignment (apache#663) Signed-off-by: stack <stack@apache.org>
…domAssignment and roundRobinAssignment (apache#663) Signed-off-by: stack <stack@apache.org> (cherry picked from commit c50e3f3) Change-Id: I596ee594082021941f21ceb1b8150fc85ccb513b
…domAssignment and roundRobinAssignment