The GitHub Actions job "Build and Run Tests by Maven" on 
rocketmq.git/fix/issue-10065 has failed.
Run started by GitHub user Wubabalala (triggered by github-actions[bot]).

Head commit for run:
4aaadc744b27f547dc0d703afbccb6fc521c1420 / hyc <[email protected]>
[ISSUE #10065] Fix inconsistent lock/unlock timeout multiplier and check expiry 
before tryAcquire in ReceiptHandleGroup

1. Align unlock() threshold from *2 to *3 to match lock()'s force-acquire
   threshold, eliminating a deadlock window of duration T in [2T, 3T)
   where the semaphore permit is leaked and cannot be force-acquired.

2. Check lock expiry before calling tryAcquire() so that expired locks
   are force-acquired immediately without blocking for the full timeout.
   This improves throughput when the queue has accumulated expired items.

3. Extract tryForceAcquire() to avoid duplicating the double-checked
   locking block between the fast path and the slow path.

4. Add two tests covering the aligned threshold behavior and the
   pre-check fast path.

Fixes #10065

Report URL: https://github.com/apache/rocketmq/actions/runs/24323110578

With regards,
GitHub Actions via GitBox

Reply via email to