Skip to content

HBASE-30248 Validate snapshot region timeout#8468

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30248-snapshot-region-timeout
Open

HBASE-30248 Validate snapshot region timeout#8468
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30248-snapshot-region-timeout

Conversation

@Sigma-Ma

@Sigma-Ma Sigma-Ma commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

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

What changes were proposed in this pull request?

This change validates hbase.snapshot.region.timeout in RegionServerSnapshotManager.

When the configured value is less than or equal to zero, HBase logs a warning and falls back to the documented default value of 300000 milliseconds.

All RegionServer snapshot call sites now use the same validated timeout value. The configuration documentation is also updated to state that the value must be greater than zero.

Why are the changes needed?

HBASE-30248 reports that a negative hbase.snapshot.region.timeout is passed to ThreadPoolExecutor as the keep-alive time during snapshot procedure initialization.

This causes an IllegalArgumentException and aborts the RegionServer during startup. A zero value is also invalid when core thread timeout is enabled.

Falling back to the documented default prevents an invalid timeout configuration from aborting the RegionServer.

How was this patch tested?

Added TestRegionServerSnapshotManager, covering:

  • A negative value falls back to the default.
  • Zero falls back to the default.
  • A positive value is preserved.

The focused unit test can be run with:

mvn -pl hbase-server -am -DskipITs -Dtest=TestRegionServerSnapshotManager test

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.

1 participant