发明名称 Recovery of a transaction after XA end
摘要 Embodiments of the present invention disclose a method for recovery of a two-phase commit transaction. A computer transmits a first transaction identifier to a data store, wherein the first transaction identifier defines a two-phase commit transaction. The computer transmits a prepare command for the first transaction identifier to a first resource manager. The computer determines if a failure and restart occurred within a distributed data processing environment, wherein the failure and restart occurs after the first resource manager receives an end command, but prior to completing execution of the prepare command for the first transaction identifier. Responsive to determining the failure and restart did occur within the distributed data processing environment, the computer retrieves the first transaction identifier from the data store. The computer transmits a rollback command for the retrieved first transaction identifier to the first resource manager.
申请公布号 US9361190(B2) 申请公布日期 2016.06.07
申请号 US201414260569 申请日期 2014.04.24
申请人 International Business Machines Corporation 发明人 Campbell Mark J.;Winn Geoffrey M.
分类号 G06F11/00;G06F11/14;G06F9/46 主分类号 G06F11/00
代理机构 代理人 Gooshaw Isaac J.
主权项 1. A computer program product for recovery of a two-phase commit transaction, the computer program product comprising: a computer readable storage medium and program instructions stored on the computer readable storage medium, the program instructions comprising: program instructions to transmit a first transaction identifier to a data store, wherein the first transaction identifier defines a two-phase commit;program instructions to transmit a prepare command for the first transaction identifier to a first resource manager;program instructions to determine if a failure and restart occurred within a distributed data processing environment, wherein the failure and restart occurs after the first resource manager receives an end command, but prior to completing execution of the prepare command for the first transaction identifier; program instructions to respond to a determination that the failure and restart did occur within the distributed data processing environment by retrieving the first transaction identifier from the data store; and program instructions to transmit a rollback command for the retrieved first transaction identifier to the first resource manager.
地址 Armonk NY US