[
https://issues.apache.org/jira/browse/HBASE-30093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145517#comment-18145517
]
Hudson commented on HBASE-30093:
--------------------------------
Results for branch branch-2.5
[build #171 on
builds.a.o|https://ci-hbase.apache.org/job/HBase-Integration-Test/job/branch-2.5/171/]:
(/) *{color:green}+1 overall{color}*
----
details (if available):
(/) {color:green}+1 client integration test for 2.10.2 {color}
(/) {color:green}+1 client integration test for 3.2.4 {color}
(/) {color:green}+1 client integration test for 3.3.5 {color}
(/) {color:green}+1 client integration test for 3.3.5 with shaded hadoop
client{color}
(/) {color:green}+1 client integration test for 3.3.6 {color}
(/) {color:green}+1 client integration test for 3.3.6 with shaded hadoop
client{color}
(/) {color:green}+1 client integration test for 3.4.0 {color}
(/) {color:green}+1 client integration test for 3.4.0 with shaded hadoop
client{color}
(/) {color:green}+1 client integration test for 3.4.1 {color}
(/) {color:green}+1 client integration test for 3.4.1 with shaded hadoop
client{color}
(/) {color:green}+1 client integration test for 3.4.2 {color}
(/) {color:green}+1 client integration test for 3.4.2 with shaded hadoop
client{color}
(/) {color:green}+1 client integration test for 3.4.3 {color}
(/) {color:green}+1 client integration test for 3.4.3 with shaded hadoop
client{color}
> LoadBalancer related tests timed out
> ------------------------------------
>
> Key: HBASE-30093
> URL: https://issues.apache.org/jira/browse/HBASE-30093
> Project: HBase
> Issue Type: Sub-task
> Components: Balancer, test
> Reporter: Duo Zhang
> Assignee: mazhengxuan
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-alpha-1, 2.7.0, 3.1.0, 3.0.1, 2.6.8, 2.5.17
>
>
> Sonnet 4.5(4.6?) summary
> TestStochasticLoadBalancerRegionReplicaSameHosts
> Root cause
> StochasticLoadBalancer.balanceTable() set
> cluster.setStopRequestedAt(startTime + maxRunningTime) at the very beginning
> of the method, before build ing costs (initCosts), the first computeCost,
> needsBalance, and other setup.
> So the entire maxRunningTime budget (e.g. 250 ms in
> StochasticBalancerTestBase) was counting initialization + search, not just
> the stochastic walk.
> On a slow or busy CI host, setup alone could take ~250 ms or more. Then when
> the walk started, isStopRequested() was already true (or became true af ter a
> single rejected move). The loop could exit with step still 0, no accepted
> moves, and balanceCluster returning null even though region repl icas were
> still colocated on the same host—so
> TestStochasticLoadBalancerRegionReplicaSameHosts failed. Locally, setup is
> usually only tens of ms, so the bug rarely shows up.
> Fix
> Set setStopRequestedAt only after initialization is done, immediately before
> the stochastic for loop, using a new timestamp (searchStartTime +
> maxRunningTime). That way maxRunningTime applies to the search phase only,
> which matches the intended meaning of the limit and avoids “no search time
> left” on loaded agents.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)