Skip to content

[5.4.x] Notify the callbacks of lease requests failed by StrictConnPool eviction - #736

Closed
arturobernalg wants to merge 1 commit into
apache:5.4.xfrom
arturobernalg:pending-requests-callbacks-5.4.x
Closed

arturobernalg wants to merge 1 commit into
apache:5.4.xfrom
arturobernalg:pending-requests-callbacks-5.4.x

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

Cherry-pick of #735 (9983b03) to 5.4.x, as requested.

StrictConnPool#enumAvailable() and #enumLeased() expire pending lease requests through processPendingRequests() but never fire the completion callbacks, so closeExpired() and closeIdle() do not fail a timed out lease request on an otherwise idle pool.

The production change applies unchanged. The test is adapted, as 5.4.x has no clock injection: it uses the real clock with a 50 ms request timeout. Without the fix the two STRICT cases fail.

…vailable and #enumLeased

enumAvailable() and enumLeased() expire pending lease requests through
processPendingRequests() but did not fire the completion callbacks. The
futures of requests that timed out stayed uncompleted until the next
lease or release, so closeExpired() and closeIdle() did not enforce the
lease request timeout on an otherwise idle pool.

(cherry picked from commit 9983b03)
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.

2 participants