Skip to content

Pipelining depth grows unbounded when prepared statement is retried with explicit parameter types#1646

Merged
tsegismont merged 8 commits into
eclipse-vertx:masterfrom
doxlik:prepare-with-types-inflight
May 19, 2026
Merged

Pipelining depth grows unbounded when prepared statement is retried with explicit parameter types#1646
tsegismont merged 8 commits into
eclipse-vertx:masterfrom
doxlik:prepare-with-types-inflight

Conversation

@doxlik
Copy link
Copy Markdown
Contributor

@doxlik doxlik commented Mar 31, 2026

Fix #1644

Signed-off-by: doxlik <doxlikx@gmail.com>
Copy link
Copy Markdown
Member

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @doxlik

Can you please add a test (that does not pass without the fix)

@doxlik
Copy link
Copy Markdown
Contributor Author

doxlik commented Apr 10, 2026

@tsegismont done!

Copy link
Copy Markdown
Member

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @doxlik

I think there are a couple of issues with this test. First, it extends PreparedStatementTestBase, so it executes all tests defined in this class, which is not necessary. Then I'd rather have a simpler test here: we want to make sure inflight is never negative, so perhaps we could make the field visible for testing or add an assertion.

@doxlik
Copy link
Copy Markdown
Contributor Author

doxlik commented May 13, 2026

@tsegismont good points. Done!

@doxlik doxlik changed the title Increment inflight counter on prepare-with-parametes-types query Increment inflight counter on prepare-with-parameters-types query May 13, 2026
Copy link
Copy Markdown
Member

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @doxlik , this looks good to me.

@tsegismont
Copy link
Copy Markdown
Member

@doxlik when this is merged, I'll take care of backporting

@tsegismont tsegismont added this to the 5.1.0 milestone May 19, 2026
@tsegismont tsegismont changed the title Increment inflight counter on prepare-with-parameters-types query Pipelining depth grows unbounded when prepared statement is retried with explicit parameter types May 19, 2026
@tsegismont tsegismont merged commit 7246318 into eclipse-vertx:master May 19, 2026
19 checks passed
tsegismont added a commit that referenced this pull request May 19, 2026
…ith explicit parameter types (#1646) (#1667)

* Increment inflight counter on prepare-with-parametes-types query



* test

* Fix prepared statement reprepare inflight accounting



* Fix prepared statement reprepare inflight accounting



* Fix prepared statement reprepare inflight accounting



* Update vertx-sql-client-codec/src/main/java/io/vertx/sqlclient/codec/SocketConnectionBase.java

---------

Signed-off-by: doxlik <doxlikx@gmail.com>
Co-authored-by: doxlik <168666511+doxlik@users.noreply.github.com>
tsegismont added a commit that referenced this pull request May 19, 2026
…ith explicit parameter types (#1646) (#1668)

* Increment inflight counter on prepare-with-parametes-types query



* test

* Fix prepared statement reprepare inflight accounting



* Fix prepared statement reprepare inflight accounting



* Fix prepared statement reprepare inflight accounting



* Update vertx-sql-client-codec/src/main/java/io/vertx/sqlclient/codec/SocketConnectionBase.java

---------

Signed-off-by: doxlik <doxlikx@gmail.com>
Co-authored-by: doxlik <168666511+doxlik@users.noreply.github.com>
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.

Pipelining depth grows unbounded when prepared statement is retried with explicit parameter types

2 participants