Skip to content

[ISSUE #10225] Optimize HandleData locking mechanism to avoid unnecessary blocking#10226

Open
redlsz wants to merge 2 commits intoapache:developfrom
redlsz:fix-10225
Open

[ISSUE #10225] Optimize HandleData locking mechanism to avoid unnecessary blocking#10226
redlsz wants to merge 2 commits intoapache:developfrom
redlsz:fix-10225

Conversation

@redlsz
Copy link
Copy Markdown
Contributor

@redlsz redlsz commented Mar 27, 2026

Which Issue(s) This PR Fixes

Brief Description

Add a non-blocking tryAcquire() as the fast path, and check the expiration condition before falling through to the blocking tryAcquire(timeout, unit)

How Did You Test This Change?

Add a unit test to cover diff.

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.

Throughput of in-flight message renewal degrades while some handle data locks have expired

1 participant