Duplicate (un-intended) commit with Spring Data R2dbc, causing "Async resource cleanup failed after onComplete" and "Transaction is already completed - do not call commit or rollback more than once per transaction" exceptions #1308
Labels
status: waiting-for-triage
An issue we've not yet triaged
I was planning to build a minimal reproducible project for this spring-projects/spring-framework#28968, but now I have something even stranger, it might also be related to "spring-tx" but I still feel like it should be raised here originally. Because I (almost) never use
spring-tx
directly, so.. Anyway, let me know and I will move the issue to a proper project, if necessary.So, we have a very small integration test: https://github.com/62mkv/spring-cockroach-transaction-retry/tree/duplicate-commit
This code demonstrates really weird (to me) behaviour: it tries to execute "COMMIT" twice, on a same transaction, which brings it first to "no transaction exists" exception and then (it seems) also tries to ROLLBACK, which also causes another exception again, this time from Spring infra.
Here's the logs I get:
The text was updated successfully, but these errors were encountered: