-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-26371 Prioritize meta region move over other region moves in region_mover #3767
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
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
apurtell
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.
A minor comment, for your consideration
| public boolean load() throws ExecutionException, InterruptedException, TimeoutException { | ||
| ExecutorService loadPool = Executors.newFixedThreadPool(1); | ||
| Future<Boolean> loadTask = loadPool.submit(() -> { | ||
| Future<Boolean> loadTask = loadPool.submit(getRegionsMovePlan(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.
Rather than have a boolean parameter, which makes the code a little hard to understand, consider two methods (perhaps mostly sharing functionality via a common sibling method), one for making a META region move plan, if meta needs to be moved, and another for making a region move plan that excludes meta. E.g. getSystemRegionsMovePlan() vs getRegionsMovePlan(). Will make it a little easier to understand.
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.
Sounds good, will address this soon.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
…gion_mover (#3771) (#3767) Signed-off-by: Andrew Purtell <[email protected]>
…gion_mover (#3769) (#3767) Signed-off-by: Andrew Purtell <[email protected]>
…gion_mover (#3768) (#3767) Signed-off-by: Andrew Purtell <[email protected]>
…gion_mover (#3769) (#3767) Signed-off-by: Andrew Purtell <[email protected]>
…gion_mover (apache#3769) (apache#3767) Signed-off-by: Andrew Purtell <[email protected]>
No description provided.