Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

junegunn
Copy link
Contributor

@junegunn junegunn commented Apr 30, 2025

See https://issues.apache.org/jira/browse/HBASE-29279

Examples

# Use global defaults
alter 't', { NAME => 'd', COMPRESSION => 'GZ' }

# Apply custom throttling for this alter operation
alter 't', { NAME => 'd', COMPRESSION => 'GZ' },
      {
        CONFIGURATION => {
          'hbase.reopen.table.regions.progressive.batch.size.max' => 32,
          'hbase.reopen.table.regions.progressive.batch.backoff.ms' => 500
        }
      }

# Future alter operations on this table will reuse the throttling configuration
alter 't', { NAME => 'd', COMPRESSION => 'GZ' }

public static final int PROGRESSIVE_BATCH_SIZE_MAX_DISABLED = -1;
private static final int PROGRESSIVE_BATCH_SIZE_MAX_DEFAULT_VALUE = Integer.MAX_VALUE;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was unused.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@junegunn
Copy link
Contributor Author

junegunn commented May 1, 2025

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.

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");
Copy link
Contributor Author

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.

@junegunn junegunn force-pushed the HBASE-29279 branch 3 times, most recently from 31c0c8d to 5529cb4 Compare May 5, 2025 11:33
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

Add ReopenTableRegionsProcedure.throttled to create a procedure
with the throttling configuration.
@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 0m 26s Docker mode activated.
_ Prechecks _
+1 πŸ’š dupname 0m 0s No case conflicting files found.
+0 πŸ†— codespell 0m 1s codespell was not available.
+0 πŸ†— detsecrets 0m 1s detect-secrets was not available.
+1 πŸ’š @author 0m 0s The patch does not contain any @author tags.
+1 πŸ’š hbaseanti 0m 0s Patch does not have any anti-patterns.
_ master Compile Tests _
+1 πŸ’š mvninstall 3m 14s master passed
+1 πŸ’š compile 3m 16s master passed
+1 πŸ’š checkstyle 0m 35s master passed
+1 πŸ’š spotbugs 1m 36s master passed
+1 πŸ’š spotless 0m 47s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 3m 5s the patch passed
+1 πŸ’š compile 3m 17s the patch passed
+1 πŸ’š javac 3m 17s the patch passed
+1 πŸ’š blanks 0m 0s The patch has no blanks issues.
+1 πŸ’š checkstyle 0m 37s the patch passed
+1 πŸ’š spotbugs 1m 40s the patch passed
+1 πŸ’š hadoopcheck 11m 54s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 πŸ’š spotless 0m 44s patch has no errors when running spotless:check.
_ Other Tests _
+1 πŸ’š asflicense 0m 10s The patch does not generate ASF License warnings.
38m 42s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6951/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #6951
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux e55aefbad18d 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 3f520a4
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 86 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6951/4/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 0m 30s Docker mode activated.
-0 ⚠️ yetus 0m 2s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 πŸ’š mvninstall 3m 16s master passed
+1 πŸ’š compile 0m 58s master passed
+1 πŸ’š javadoc 0m 28s master passed
+1 πŸ’š shadedjars 5m 53s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 3m 7s the patch passed
+1 πŸ’š compile 0m 57s the patch passed
+1 πŸ’š javac 0m 57s the patch passed
+1 πŸ’š javadoc 0m 26s the patch passed
+1 πŸ’š shadedjars 5m 51s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 πŸ’š unit 211m 33s hbase-server in the patch passed.
237m 35s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6951/4/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #6951
Optional Tests javac javadoc unit compile shadedjars
uname Linux c047c7f27940 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 3f520a4
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6951/4/testReport/
Max. process+thread count 5445 (vs. ulimit of 30000)
modules C: hbase-server U: hbase-server
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6951/4/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants