-
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-28120 Switch that allows avoiding reopening all regions when altering table #5482
HBASE-28120 Switch that allows avoiding reopening all regions when altering table #5482
Conversation
gourabtaparia
commented
Oct 27, 2023
- This is to prevent RIT storms.
- The changes have been made in both alter and alter sync commands.
…fying a table to prevent RIT storms.
💔 -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. |
@Deprecated | ||
default void modifyTable(TableName tableName, TableDescriptor td, boolean reopenRegions) | ||
throws IOException { | ||
if (!tableName.equals(td.getTableName())) { | ||
throw new IllegalArgumentException("the specified table name '" + tableName | ||
+ "' doesn't match with the HTD one: " + td.getTableName()); | ||
} | ||
modifyTable(td, reopenRegions); |
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.
why add a new method already marked as deprecated?
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.
@wchevreuil The existing deprecated method needs to be passed an extra argument from, hence added this - but I see that i can reuse the logic in the existing method, and just call that from this method.
Btw, in my local refactoring, i now am not even calling this method - and directly making use of the "modifyTableAsync(TableDescriptor td, boolean reopenRegions)" method - so i can remove this altogether.
let me make that change. Thanks
🎊 +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. |
Closing this, as it was decided to cherry-pick HBASE-25549 into branch-2. |