当前位置:网站首页>How to solve the following problems in the Seata database?

How to solve the following problems in the Seata database?

2022-06-28 14:48:00 Alibaba cloud Q & A

Seata How to solve the following problems in the database ? Could not found global transaction xid = %s, may be has finished.




Take the answer 1:

Illustrate with examples : @GlobalTransactional(timeout=60000) public void A(){ call remoting B();// The remote invocation B service local DB operation;

}

public void B(){

}

Possible causes :

A The overall execution time exceeded 60000ms, This causes the global transaction to initiate a global rollback , here A or B Method to continue DB operation , Verify the global transaction status , Found that the global transaction has been rolled back . B Service execution exceeds its set readTimeout Returns an exception to A And throw an exception to cause the global transaction to roll back , here B Service execution DB In operation , Verify the global transaction status , Found that the global transaction has been rolled back . influence : When this happens , The data will be rolled back to A The initial state of data before method execution , From the perspective of data consistency , The data is consistent as a whole . This answer is to sort out the self nailing group “3 Group -Seata Open source discussion group ”


原网站

版权声明
本文为[Alibaba cloud Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/179/202206281340115671.html