spring-framework/spring-r2dbc
danu e050c37158
Release R2DBC connection when cleanup fails in transaction
When using R2dbcTransactionManager, connection will not be released if
it encounters error while doing `afterCleanup` steps. As `afterCleanup`
can use a database connection when doing `setAutoCommit(true)`, it can
fail under some conditions where the connection is not reliable.

This leads to the Connection not being released.

This commit ensures that inner steps of the `doCleanupAfterCompletion`
are protected against errors, logging the errors and continuing the
cleanup until the last step, which releases the connection.

Closes gh-29703

Co-authored-by: Simon Baslé <sbasle@vmware.com>
2023-02-03 17:33:55 +01:00
..
src Release R2DBC connection when cleanup fails in transaction 2023-02-03 17:33:55 +01:00
spring-r2dbc.gradle Upgrade to R2DBC 1.0 2022-07-13 10:23:51 +02:00