Skip to content

HBASE-29782 Expose public Admin API to reopen table regions without moving - #7563

Merged
charlesconnell merged 8 commits into
apache:masterfrom
HubSpot:HBASE-29782-reopen-regions-api
Jan 6, 2026
Merged

HBASE-29782 Expose public Admin API to reopen table regions without moving#7563
charlesconnell merged 8 commits into
apache:masterfrom
HubSpot:HBASE-29782-reopen-regions-api

Conversation

@ajkh88

Copy link
Copy Markdown
Contributor

This change adds fail-fast validation that throws UnknownRegionException when callers attempt to reopen regions that don't belong to the specified table, preventing silent failures and configuration errors in production. The implementation removes unused batch parameters from the API in favor of configuration-based throttling (via table descriptor or global config), ensuring consistent behavior between reopening all regions and specific subsets. Exception handling now properly fails procedures for DoNotRetry errors rather than infinitely retrying validation failures.

JIRA: https://issues.apache.org/jira/browse/HBASE-29782

@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.

@ajkh88

Copy link
Copy Markdown
ContributorAuthor

Added TestReopenTableRegionsIntegration to verify the entire lazy modify, hash comparison, and reopen regions flow

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 40sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+0 🆗buf0m 0sbuf was not available.
+0 🆗buf0m 0sbuf was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ master Compile Tests _
+0 🆗mvndep0m 50sMaven dependency ordering for branch
+1 💚mvninstall5m 31smaster passed
+1 💚compile8m 59smaster passed
+1 💚checkstyle4m 12smaster passed
+1 💚spotbugs8m 6smaster passed
+1 💚spotless1m 7sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall4m 43sthe patch passed
+1 💚compile8m 4sthe patch passed
+1 💚cc8m 4sthe patch passed
+1 💚javac8m 4sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle4m 8sthe patch passed
+1 💚spotbugs9m 52sthe patch passed
+1 💚hadoopcheck16m 25sPatch does not cause any errors with Hadoop 3.3.6 3.4.1.
+1 💚hbaseprotoc2m 23sthe patch passed
+1 💚spotless1m 13spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 56sThe patch does not generate ASF License warnings.
87m 34s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7563/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#7563
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless cc buflint bufcompat hbaseprotoc
unameLinux 2c9876e3caae 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 toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 4a27471
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count86 (vs. ulimit of 30000)
modulesC: hbase-protocol-shaded hbase-client hbase-server hbase-thrift U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7563/3/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@charlesconnellcharlesconnell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, will approve when the test run passes

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 11sDocker mode activated.
-0 ⚠️yetus0m 4sUnprocessed 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 _
+0 🆗mvndep0m 14sMaven dependency ordering for branch
+1 💚mvninstall3m 30smaster passed
+1 💚compile3m 3smaster passed
+1 💚javadoc1m 38smaster passed
+1 💚shadedjars6m 16sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall3m 26sthe patch passed
+1 💚compile2m 18sthe patch passed
+1 💚javac2m 18sthe patch passed
-0 ⚠️javadoc0m 30s/results-javadoc-javadoc-hbase-server.txthbase-server generated 2 new + 63 unchanged - 0 fixed = 65 total (was 63)
+1 💚shadedjars5m 41spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit0m 30shbase-protocol-shaded in the patch passed.
+1 💚unit1m 40shbase-client in the patch passed.
-1 ❌unit273m 5s/patch-unit-hbase-server.txthbase-server in the patch failed.
+1 💚unit6m 18shbase-thrift in the patch passed.
315m 33s
SubsystemReport/Notes
DockerClientAPI=1.48 ServerAPI=1.48 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7563/3/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#7563
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 56dd8329852d 6.8.0-1024-aws #26~22.04.1-Ubuntu SMP Wed Feb 19 06:54:57 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / 4a27471
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7563/3/testReport/
Max. process+thread count6587 (vs. ulimit of 30000)
modulesC: hbase-protocol-shaded hbase-client hbase-server hbase-thrift U: .
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7563/3/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@charlesconnell
charlesconnell merged commit 6e14c22 into apache:masterJan 6, 2026
1 check failed
@charlesconnell
charlesconnell deleted the HBASE-29782-reopen-regions-api branch January 6, 2026 21:13
charlesconnell pushed a commit that referenced this pull request Jan 6, 2026
…oving (#7563)
* HBASE-29782 Add reopen regions functionality to admin
* Add integration tests
* HBASE-29782 Remove unnecessary comment
* HBASE-29782 Spotless
* HBASE-29782 Add integration test
* HBASE-29782 Add comment about testing constructors
* HBASE-29782 Spotless
---------
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
rmdmattingly pushed a commit that referenced this pull request Jan 11, 2026
…oving (#7563) (#7611)
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
rmdmattingly pushed a commit to HubSpot/hbase that referenced this pull request Jan 11, 2026
…oving (apache#7563) (apache#7611)
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
rmdmattingly pushed a commit to HubSpot/hbase that referenced this pull request Jan 11, 2026
… regions without moving (apache#7563) (apache#7611) (will be in 2.7)
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
rmdmattingly added a commit to HubSpot/hbase that referenced this pull request Jan 11, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Jul 14, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Jul 15, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Aug 4, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Aug 4, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Aug 8, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Aug 9, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
charlesconnell pushed a commit to HubSpot/hbase that referenced this pull request Aug 9, 2026
… regions without moving (apache#7563) (apache#7611) (#232) (will be in 2.7)
Signed-off-by: Ray Mattingly <rmattingly@apache.org>
Co-authored-by: Alex Hughes <ajkh88@users.noreply.github.com>
Co-authored-by: Alex Hughes <ahughes@hubspot.com>
Sign up for freeto 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.

4 participants

@ajkh88@Apache-HBase@charlesconnell@ndimiduk