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

   ### 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.
   
   - [x] I am willing to try to fix this bug myself.
   
   
   ### Ⅰ. Issue Description
   
   
TC下发回滚对应PG数据库是新连接的state为IDLE,在166行先xaEnd,PG驱动前置状态判断state不为ACTIVE会报错,导致一直回滚失败,mysql如果是新连接,驱动发送给数据库是命令是XA
 END 'xxx',也会报错。
   解决方案:
   去掉166行的xaEnd调用,放到151行和152行之间,如果是旧连接,先调用xaEnd
   <img width="1567" height="683" alt="Image" 
src="https://github.com/user-attachments/assets/329f3f73-15b7-41cd-8300-906b29ae67aa";
 />
   
   <img width="1557" height="785" alt="Image" 
src="https://github.com/user-attachments/assets/4f726eb6-f21e-4ea5-a98f-f0293d61f4dd";
 />
   
   <img width="1575" height="596" alt="Image" 
src="https://github.com/user-attachments/assets/d1c25e98-362c-4dcf-a338-89016a8299a3";
 />
   
   <img width="1565" height="62" alt="Image" 
src="https://github.com/user-attachments/assets/f753dbde-954a-4d52-bef0-4195157e5948";
 />
   
   ### Ⅱ. Describe what happened
   
   _No response_
   
   ### Ⅲ. Describe what you expected to happen
   
   _No response_
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   _No response_
   
   ### Ⅴ. Anything else we need to know?
   
   _No response_
   
   ### Ⅵ. Environment
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to