Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: rollback active xa connection fail #656

Closed
wt-better opened this issue Jan 29, 2024 · 3 comments · Fixed by #672
Closed

bugfix: rollback active xa connection fail #656

wt-better opened this issue Jan 29, 2024 · 3 comments · Fixed by #672
Labels
bug Something isn't working task: help-wanted

Comments

@wt-better
Copy link
Contributor

What happened:

see PR:apache/incubator-seata#5131

@wt-better wt-better changed the title rollback active xa connection fail bugfix: rollback active xa connection fail Jan 29, 2024
@wt-better wt-better added task: help-wanted bug Something isn't working labels Jan 29, 2024
@wt-better
Copy link
Contributor Author

@smiletrl

@smiletrl
Copy link
Contributor

smiletrl commented Mar 7, 2024

这个PR #672 参照Java 那边的PR https://github.com/apache/incubator-seata/pull/5131/files,修改的内容是一致的。但是这个错误 XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state 在Go的这里依然存在。

当全局事务时间过期了,但是本地RM的业务sql还没有跑完,此时TC发送RM Rollback的请求,本地会报这个错误。

@smiletrl
Copy link
Contributor

smiletrl commented Mar 7, 2024

出现这个错误,建议业务层将sql执行查询的timeout时间缩短,或者将全局事务timeout的时间放长。代码层面,感觉除非强制关闭db connection,没有其他特别好的方案处理。就只能等tc 重试次数达到最高值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working task: help-wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants