Skip to content

Fix connection pool slot leak on COMMIT fail (1.5) - #547

Merged
staticlibs merged 1 commit into
duckdb:v1.5-variegatafrom
staticlibs:commit_throw_15
Aug 7, 2026
Merged

Fix connection pool slot leak on COMMIT fail (1.5)#547
staticlibs merged 1 commit into
duckdb:v1.5-variegatafrom
staticlibs:commit_throw_15

Conversation

@staticlibs

Copy link
Copy Markdown
Member

This is a backport of the PR #546 to v1.5-variegata stable branch.

It was discovered that when server COMMIT or ROLLBACK throws, the pool connection tied to the current transaction is not returned to pool.

This PR adds exception checks to those code paths.

Testing: new test is added that covers failures of both COMMIT and ROLLBACK.

Fixes: #545

This is a backport of the PR duckdb#546 to `v1.5-variegata` stable branch.

It was discovered that when server `COMMIT` or `ROLLBACK` throws, the
pool connection tied to the current transaction is not returned to pool.

This PR adds exception checks to those code paths.

Testing: new test is added that covers failures of both `COMMIT` and
`ROLLBACK`.

Fixes: duckdb#545

Co-Authored-By: Shadab Khan <shadabkhan127@gmail.com>
@staticlibs
staticlibs merged commit b8242c8 into duckdb:v1.5-variegata Aug 7, 2026
7 checks passed
@staticlibs
staticlibs deleted the commit_throw_15 branch August 7, 2026 10:12
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.

1 participant