官网翻译 xa分布式事务的限制点( Restrictions on XA Transactions )

原文: http://dev.mysql.com/doc/refman/5.1/en/xa-restrictions.html

D.5 Restrictions on XA Transactions 

综述:  

external XA的概念.  介绍了mysql 内部XA ( internal XA) 和外部XA(external XA )的概念.

   外部XA的限制如下: 

     1. 连接中断情况:

mysql会对事务进行回滚. 当xa 事务管理器会重连并提交事务. 但此时mysql因为该事务已回滚会出现提现失败的情况.


翻译详情: 后续补充.


别人的理解

外部XA:http://dev.mysql.com/doc/refman/5.1/en/xa.html

外部XA缺陷原因摘录如下:

        server crash后重启,XA RECOVER可以恢复出未提交的XA PREPARED事务(应该是根据redo log恢复,外部程序可能会决定提交该prepared事务),但是此时提交时无法记录binlog(crash时binlog cache丢失),这就使得binlog和存储引擎数据不一致,会引起复制中断


理解有误,后续阅读后更新

其他XA参考文档:

 http://dev.mysql.com/doc/refman/5.1/en/xa.html mysql 官网介绍xa的文章,不过很浅显 

http://hedengcheng.com/?p=136 MySQL 外部XA及其在分布式事务中的应用分析

http://m.blog.csdn.net/blog/taozhi20084525/19898211  [转]17 mysql XA事务



外部XA:http://dev.mysql.com/doc/refman/5.1/en/xa.html

外部XA缺陷原因摘录如下:

server crash后重启,XA RECOVER可以恢复出未提交的XA PREPARED事务(应该是根据redo log恢复,外部程序可能会决定提交该prepared事务),但是此时提交时无法记录binlog(crash时binlog cache丢失),这就使得binlog和存储引擎数据不一致,会引起复制中断

你可能感兴趣的:(数据库)