-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22923 min version of RegionServer to move system table regions #3439
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. |
|
🎊 +1 overall
This message was automatically generated. |
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.
Nits that come of me trying to understand how this works. Thanks. Needs release noting of new config.
|
|
||
| /** | ||
| * When the operator uses this configuration option, any version between | ||
| * the current version and the new value of |
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.
Is it 'new value' or just 'value'.
| /** | ||
| * When the operator uses this configuration option, any version between | ||
| * the current version and the new value of | ||
| * "hbase.min.version.move.system.tables" does not trigger any region movement. |
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.
Do you want to explain what the 'region movement' is here? The auto-migration of system tables to newer server versions. A dev reading this w/o context might not tie the 'reigon movement' to the auto-movement to newer versions.
| * the current version and the new value of | ||
| * "hbase.min.version.move.system.tables" does not trigger any region movement. | ||
| * It is assumed that the configured range of versions do not require special | ||
| * handling of moving system table regions to higher versioned RegionServer. |
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.
s/do/does/ and s/of//. Perhaps point at the location in the code where this is done.
Can we add examples of how this would work -- the ones from the JIRA?
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.
Done, Thanks
| * Get a list of servers that this region cannot be assigned to. | ||
| * For system tables, we must assign them to a server with highest version. | ||
| */ | ||
| public List<ServerName> getExcludedServersForSystemTable() { |
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.
Is this used?
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.
Yes, this is used by HMaster and AM both.
| } | ||
|
|
||
| /** | ||
| * Get a list of servers that this region can not assign to. |
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.
There doesn't seem to be a 'region' passed to this method.... So is it any system table region?
| * "hbase.min.version.move.system.tables" if checkForMinVersion is true. | ||
| * | ||
| * @param checkForMinVersion if true, check for minVersionToMoveSysTables | ||
| * and decide moving system table regions accordingly. |
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 doesn't do move? It just looks for servers to exclude....
|
Sorry @saintstack for opening master branch PR later. Here is where other reviews took place: #3438 |
|
My fault for not working on the PR where the action was. |
|
All nice comments, I agree, doc can be better. On it. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
Thank you for the review @saintstack. I have incorporated changes and merging based on sign-offs provided on other PR. Please let me know if you feel something still missing and will be happy to add addendum. |
…3439) (#3438) Signed-off-by: Andrew Purtell <[email protected]> Signed-off-by: Bharath Vissapragada <[email protected]>
…3439) (#3438) Signed-off-by: Andrew Purtell <[email protected]> Signed-off-by: Bharath Vissapragada <[email protected]>
…3439) (#3438) Signed-off-by: Andrew Purtell <[email protected]> Signed-off-by: Bharath Vissapragada <[email protected]>
No description provided.