Affects: spring-tx 5.2.8.RELEASE


Actually, The TransactionAspectSupport commit the transaction on a mono cancel. This can happen on a timeout on an HTTP call.

This is problematic if the treatment perform multiple insertions, If we have two tables customer and address and the following treatment: - insert the customer - insert the address

If the mono is canceled between the two operations, the commit is performed on a partial transaction. This is not an intuitive behavior for a transaction.

Can we update the transaction behaviour to perform a rollback in case of cancel?

Comment From: jhoeller

This seems to be a duplicate of #25256. We changed this behavior for 5.3, so please give it a try there!