WangzJi commented on issue #7459:
URL: 
https://github.com/apache/incubator-seata/issues/7459#issuecomment-2993384299

   > > [@kutouziUk](https://github.com/kutouziUk) I've confirmed this is a 
critical bug and am actively working on the fix.我已确认这是一个严重错误,并正在积极进行修复。
   > > **Root cause identified:** `ConnectionProxy.close()` missing 
`context.reset()` call.**已确定根本原因:**`ConnectionProxy.close()` 缺少 
`context.reset()` 调用。
   > > **Fix in progress:** Adding proper context cleanup to prevent XID 
binding conflicts during connection pool reuse.**修复中:** 
添加适当的上下文清理,以防止在连接池重用期间发生 XID 绑定冲突。
   > > [@funky-eyes](https://github.com/funky-eyes) Plz assign to me. Will have 
a PR ready soon with the complete solution and test cases.请分配给我。很快就会准备好一个 
PR,其中包含完整的解决方案和测试用例。
   > > Thanks for the excellent bug report! 👍感谢您的出色错误报告! 👍
   > 
   > 谢谢,那我现在改怎么办,如何修改2.1.0源码,只修改client端就可以吧,然后编译推到我们的私有仓库中?
   
   You can try to fix it using this approach:
   Modify ConnectionProxy.java
   File: 
`rm-datasource/src/main/java/org/apache/seata/rm/datasource/ConnectionProxy.java`
   Add method:
   ```java
   @Override
   public void close() throws SQLException {
       context.reset();
       super.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-unsubscr...@seata.apache.org

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


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

Reply via email to