Skip to content

HBASE-30093 Start stochastic search timeout after initialization - #8587

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30093-fix-load-balancer-test-timeout
Open

HBASE-30093 Start stochastic search timeout after initialization#8587
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30093-fix-load-balancer-test-timeout

Conversation

@Sigma-Ma

@Sigma-Ma Sigma-Ma commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

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

What changes were proposed in this pull request?

Start the maxRunningTime deadline immediately before the stochastic walk. Keep the original start time for total-duration metrics and logging. Add a regression test for the deadline ordering.

Why are the changes needed?

Balancer initialization currently consumes part of the stochastic search time budget. On a busy host, this can leave too little time to find a better balance plan and cause load balancer tests to fail intermittently.

How was this patch tested?

mvn -pl hbase-balancer -am -Dtest=TestStochasticLoadBalancer#testSearchDeadlineIsSetAfterInitialization -Dsurefire.failIfNoSpecifiedTests=false test

mvn -pl hbase-balancer -am -Dtest=TestStochasticLoadBalancerRegionReplicaSameHosts -Dsurefire.failIfNoSpecifiedTests=false test

mvn -pl hbase-balancer -am -Dtest=TestStochasticLoadBalancer -Dsurefire.failIfNoSpecifiedTests=false test

mvn -pl hbase-balancer spotless:check

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