-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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-24928 balanceRSGroup should skip generating balance plan for disabled table and splitParent region #2292
Conversation
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
private Map<TableName, Map<ServerName, List<RegionInfo>>> getRSGroupAssignmentsByTable( | ||
String groupName) throws IOException { | ||
@VisibleForTesting | ||
Map<TableName, Map<ServerName, List<RegionInfo>>> getRSGroupAssignmentsByTable( |
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.
This method will be called when balance? Add some comments 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.
This method will be called when balance? Add some comments here?
Yes, only called by balanceRSGroup, triggered in manual way
6c2b864
to
e9f1e30
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
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 overall, left one comment regarding PR description.
if (region.isSplitParent()) { | ||
continue; | ||
} |
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.
This seems an additional check to what PR title talks about. Can you please also add PR description reg this check?
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.
This seems an additional check to what PR title talks about. Can you please also add PR description reg this check?
Yes, I have amended the PR description
e9f1e30
to
01b0907
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
* Can't let out original since it can change and at least the load balancer | ||
* wants to iterate this exported list. |
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.
Maybe for these two lines, we can mention:
Load balancer should iterate over this list because cloned list will ignore disabled table and split parent region cases.
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 have added this comment
…sabled table and splitParent region
01b0907
to
b7cba89
Compare
🎊 +1 overall
This message was automatically generated. |
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.
+1
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
No description provided.