Jira issue originally created by user @beberlei:
Allow to switch a CommitFailure into a successful event.
This could be done by saving all insert/update/delete statements starting from begin transaction and then replaying them N-times until success is achieved.
Comment created by deatheriam:
Comment created by backbone:
just replay the statements used in a transaction isnt very useful!
the whole purpose of (write) transaction is that your writes are consistent with your reads.
if you start a new transaction and execute just your DMLs again than these DMLs rely on now inconsistent reads from a previous (failed) transaction.
thats basically the gist of a failed transaction: the attempted writes would cause inconsistencies with the already done reads.