You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "mogli129 (via GitHub)" <gi...@apache.org> on 2026/01/29 12:24:48 UTC

[I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

mogli129 opened a new issue, #7975:
URL: https://github.com/apache/incubator-seata/issues/7975

   ### Check Ahead
   
   - [x] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
   
   - [ ] I am willing to try to fix this bug myself.
   
   
   ### Ⅰ. Issue Description
   
   this is some problem when I test in XA mode use PG,use “springboot-feign-seata-xa” project。
   update Seata to 2.5.0,The Timeout Exception is ingore。
   
   ### Ⅱ. Describe what happened
   
   1.Timeout Exception is throw
   
   <img width="1254" height="686" alt="Image" src="https://github.com/user-attachments/assets/8e37103e-bc55-410f-9f60-748d36ee2fe9" />
   
   2.Check the stack, Timeout Exception will Ingore By this code
   
   <img width="1720" height="692" alt="Image" src="https://github.com/user-attachments/assets/b74eaffe-e28d-4189-a1a6-7bbcaf849a8f" />
   
   3.The console indicates that the transaction has been committed, but in fact, the transaction was rolled back.
   
   
   ### Ⅲ. Describe what you expected to happen
   
   Please confirm if it is a problem. If it is a problem, please fix it.
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   _No response_
   
   ### Ⅴ. Anything else we need to know?
   
   _No response_
   
   ### Ⅵ. Environment
   
   jdk1.8.0_172  Seata2.5.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #7975: something about: modify XA mode pre commit transaction from commit phase to before close phase
URL: https://github.com/apache/incubator-seata/issues/7975


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

Posted by "mogli129 (via GitHub)" <gi...@apache.org>.
mogli129 commented on issue #7975:
URL: https://github.com/apache/incubator-seata/issues/7975#issuecomment-3859391319

   1.Use demo project 'springboot-feign-seata-xa' to test
   2.Modify the pom.xml of each project,update seata to 2.5.0
   
   <img width="737" height="291" alt="Image" src="https://github.com/user-attachments/assets/446b99e2-df77-428e-acc5-32e5ac034973" />
   2.Modify project "springboot-feign-seata-order",log level DEBUG
   
   <img width="1153" height="652" alt="Image" src="https://github.com/user-attachments/assets/ce85be75-261d-4d47-9eff-e87c928c6bc9" />
   3.Modify project "springboot-feign-seata-order",add test code to "OrderServiceImpl.create",Make it time out.
   The default timeout period is 60 seconds. We will let it pause for 61 seconds.
   
   <img width="1067" height="608" alt="Image" src="https://github.com/user-attachments/assets/a1553a72-2c06-49f9-965a-37b80f9e9925" />
   4.The order service timed out and rolled back, but all other services were submitted.
   
   <img width="1810" height="624" alt="Image" src="https://github.com/user-attachments/assets/e9a2455c-8445-4145-b249-5cab795f40fa" />
   other services were submiited
   
   <img width="1727" height="623" alt="Image" src="https://github.com/user-attachments/assets/00f9897c-4b4e-4f69-a195-ccd5a733caca" />
   
   <img width="1789" height="584" alt="Image" src="https://github.com/user-attachments/assets/165aa8ff-9786-422f-8bec-ef41be9c4e43" />
   
   <img width="1752" height="586" alt="Image" src="https://github.com/user-attachments/assets/9ea0797b-b336-489f-9b04-e74eb4a5e843" />
   The database has been modified but no order records have been generated.
   
   <img width="501" height="110" alt="Image" src="https://github.com/user-attachments/assets/a3f007e7-4ff2-4e6c-9469-661eb120da60" />
   
   <img width="476" height="119" alt="Image" src="https://github.com/user-attachments/assets/56d7eb07-1ed4-4338-a8c1-997bf9b32bec" />
   
   <img width="695" height="134" alt="Image" src="https://github.com/user-attachments/assets/9dc8c2c9-0828-4db5-809c-99bd12dcfdc3" />
   
   This should be a problem.
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

Posted by "xiaoxiangyeyu0 (via GitHub)" <gi...@apache.org>.
xiaoxiangyeyu0 commented on issue #7975:
URL: https://github.com/apache/incubator-seata/issues/7975#issuecomment-3846247863

   The RM end will notify the TC end of a phase one error when closing, and the entire distributed transaction will fail. In the end, the TM end will report an error. Here, Spring has swallowed the exception, and no matter what error is reported during the close, it will be swallowed
   RM端close报错会通知TC端一阶段报错,整个分布式事务是失败的,最终TM端会报错,这里是spring把异常吞了,不管close报什么错都会被吞


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

Posted by "mogli129 (via GitHub)" <gi...@apache.org>.
mogli129 commented on issue #7975:
URL: https://github.com/apache/incubator-seata/issues/7975#issuecomment-3817334757

   Seata2.3.0 does not have such a problem,I checked the source code and I believe it was caused by the following modification.
   https://github.com/apache/incubator-seata/pull/7102


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] something about: modify XA mode pre commit transaction from commit phase to before close phase [incubator-seata]

Posted by "xiaoxiangyeyu0 (via GitHub)" <gi...@apache.org>.
xiaoxiangyeyu0 commented on issue #7975:
URL: https://github.com/apache/incubator-seata/issues/7975#issuecomment-3889984049

   There is indeed a problem here, because after RM reports a failure, TM still submits the global transaction TC. We plan to add attributes to GlobalTransactional. When TM submits a global transaction, TC will determine whether all RMs are successful based on the added attributes before finally submitting the transaction. I will create a PR to fix this problem
   这里确实有问题,因为RM上报失败后,TM提交全局事务TC依然会提交,这里打算在GlobalTransactional增加属性,TM提交全局事务时,TC根据增加的属性来判断是否所有RM都成功才最终提交事务,我会创建PR来修复这个问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org