Skip to content

Cancel pool connection timeout timer when acquisition fails - #1750

Merged
tsegismont merged 1 commit into
eclipse-vertx:5.2from
tsegismont:backport-1712-5-2
Oct 8, 2026
Merged

tsegismont merged 1 commit into
eclipse-vertx:5.2from
tsegismont:backport-1712-5-2

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport #1712

…vertx#1712)

* Cancel pool connection timeout timer when acquisition fails

See eclipse-vertx#1706

When a pooled query fails to acquire a connection, the connection timeout
timer is not cancelled, so it fails the query handler a second time when it
fires. When the timer fires first, the acquisition failure also fails the
handler again.

Handle the acquisition failure like a successful acquisition: cancel the
timer, and if it already fired, do not complete the handler again.

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>

* Use if/else in the acquisition failure branch

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>

---------

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
@tsegismont tsegismont added this to the 5.2.2 milestone Oct 8, 2026
@tsegismont
tsegismont merged commit c588635 into eclipse-vertx:5.2 Oct 8, 2026
18 checks passed
@tsegismont
tsegismont deleted the backport-1712-5-2 branch October 8, 2026 13:36
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