-
Notifications
You must be signed in to change notification settings - Fork 3.3k
HBASE-29279 Allow throttling alter operation via table configuration #6951
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
base: master
Are you sure you want to change the base?
Conversation
public static final int PROGRESSIVE_BATCH_SIZE_MAX_DISABLED = -1; | ||
private static final int PROGRESSIVE_BATCH_SIZE_MAX_DEFAULT_VALUE = Integer.MAX_VALUE; |
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 one was unused.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @rmdmattingly, when you have a moment, could you take a look at this? It's a simple change but I believe it makes the throttling feature much more useful in production. |
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ModifyTableProcedure.java
Outdated
Show resolved
Hide resolved
public static final long PROGRESSIVE_BATCH_BACKOFF_MILLIS_DEFAULT = 0L; | ||
public static final String PROGRESSIVE_BATCH_SIZE_MAX_KEY = | ||
"hbase.reopen.table.regions.progressive.batch.size.max"; | ||
ConfigKey.INT("hbase.reopen.table.regions.progressive.batch.size.max"); |
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.
Type checks are now necessary.
31c0c8d
to
5529cb4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Add ReopenTableRegionsProcedure.throttled to create a procedure with the throttling configuration.
π +1 overall
This message was automatically generated. |
π +1 overall
This message was automatically generated. |
See https://issues.apache.org/jira/browse/HBASE-29279
Examples