You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: WeixinLeaseLifecycleTest.standbyKeepsTryingAndTakesOverWithoutConfigurationChange fails intermittently on CI (3s sent.await budget vs. lease-expiry backoff) #3547
WeixinLeaseLifecycleTest.standbyKeepsTryingAndTakesOverWithoutConfigurationChange fails intermittently on CI, leaving main red on the build (ubuntu-latest) lane:
The failing assertion is assertTrue(sent.await(3, TimeUnit.SECONDS)). After the test releases the pre-held lease, the standby channel must complete the whole takeover chain inside 3 seconds: acquire the lease (retry every leaseMs / 3 = 500 ms) → start the provider session → long-poll getupdates → claim and dispatch → sendmessage.
Why 3 s is not always enough on a shared runner
leaseMs is 1500 ms and the heartbeat renews every 500 ms. A single GC/JIT/scheduling stall longer than 1.5 s between lease acquisition and the reply send expires the lease mid-takeover.
The consumer then drops the session, sleeps backoff (1 s), re-acquires a fresh lease and delivers the message on the second pass — correct behavior, but the reply now lands after the 3 s budget, so the assertion fails even though the takeover eventually succeeds.
The message itself is not lost (claimMessages re-claims inbox entries from expired leases), so this is a test-budget issue, not a product bug.
The class-level @Timeout(20) applies per method and this method already took 7.5 s in the red run, so headroom is thin there too.
Activity
test(channel): widen WeixinLeaseLifecycleTest timing budgets