Desired behavior: If the failure occurs before commit processing is complete, then the transaction goes in doubt.
期望的行为:如果故障出现在提交进程完成之前,那么事务的行为将无法确定。
The resource manager fails between prepare and commit processing, and the transaction manager detects the failure.
在准备和提交进程期间,资源管理器出现故障,事务管理器检测到错误。
Should the transaction manager fail during the commit processing, the transaction may be left in-doubt in the resource managers.
如果在提交过程中事务管理器失败,则事务可能在资源管理器中处于未确定状态。
Thus, if there is any failure while the transaction is in-flight (that is, before commit processing is initiated), then all updates will be rolled back.
这样,如果在事务处于处理状态时(即,在启动提交进程之前)发生任何故障,那么所有更新将回滚。
However, the XA protocol does provide some additional integrity to this one-phase commit scenario in its provision of resynchronization and recovery logic for failure during commit processing.
不过,XA协议在提交进程失败时可以提供再同步和恢复逻辑,在这一点上确实比此单阶段提交场景多提供一些附加的完整性。
However, the XA protocol does provide some additional integrity to this one-phase commit scenario in its provision of resynchronization and recovery logic for failure during commit processing.
不过,XA协议在提交进程失败时可以提供再同步和恢复逻辑,在这一点上确实比此单阶段提交场景多提供一些附加的完整性。
应用推荐