Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Mar 27, 2025

PgCodec tries to fail a command in progress by firing a failure message through the Netty pipeline. This raise issues when there is a read in progress with reentrancy, while this issue should be also addressed in vertx core, proceeding this way means caring about the channel read/readComplete status to eventually emit a readComplete to respect the Netty inbound message protocol.

Instead we can simply fail the handler associated with the codec yielding the same result.

…ge through the Netty pipeline. This raise issues when there is a read in progress with reentrancy, while this issue should be also addressed in vertx core, proceeding this way means caring about the channel read/readComplete status to eventually emit a readComplete to respect the Netty inbound message protocol.

Instead we can simply fail the handler associated with the codec yielding the same result.
@vietj vietj added this to the 5.0.0 milestone Mar 27, 2025
@vietj vietj added the bug label Mar 27, 2025
@vietj vietj self-assigned this Mar 27, 2025
@vietj vietj merged commit a7e2b61 into master Mar 27, 2025
18 checks passed
@vietj vietj deleted the fix-incorrect-pg-codec-failure branch March 27, 2025 10:03
tsegismont added a commit to tsegismont/vertx-sql-client that referenced this pull request Mar 28, 2025
Follows up on onhttps://github.com/eclipse-vertx/pull/1507

Signed-off-by: Thomas Segismont <[email protected]>
tsegismont added a commit that referenced this pull request Mar 28, 2025
Follows up on onhttps://github.com//pull/1507

Signed-off-by: Thomas Segismont <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PgClient: CloseConnectionTest#testTransactionInProgressShouldFail fails intermittently

2 participants