Following #30134
Switching from my dirty workarround implementation of r2dbc nested transaction to new build-in, I got some test case failure.
After digging, I realize that outer transaction state was lost after completing a nested transaction with existing transaction (i.e. one using a savepoint) through R2dbcTransactionManager#doCleanupAfterCompletion
that call ConnectionFactoryUtils#releaseConnection
and ConnectionHolder#clear
.
This PR try to fix that.
@jhoeller : It would be great if you may have a look (You may see something I miss) ; And thanks a lot for #30134 !