Methods and apparatus are provided for processing a transaction that has been aborted on a source system. Transactions are completed within a transaction processing system, and the transactions are replicated from a source database to a target database by a replication engine. Each transaction is a series of one or more transaction steps or operations. The aborted transaction on the source system was replicated and is a pre-committed transaction on the target database. Transaction pattern data in a transaction pattern table is used to predict when a pre-committed transaction is an erroneously committed transaction. The pre-committed transaction is reversed on the target database when the prediction indicates that the pre-committed transaction was erroneously committed.