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: fix the issue of xaEnded not being reset #6627

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

tanyaofei
Copy link
Contributor

@tanyaofei tanyaofei commented Jun 22, 2024

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

用来判断当前是否执行过 XA End 的上下文变量 xaEnded 应当在 cleanXABranchContext 中重置而不是在 close

Ⅱ. Does this pull request fix one issue?

fixes #6492

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@tanyaofei tanyaofei force-pushed the 2.x-fix branch 2 times, most recently from 42839cb to 946cde5 Compare June 22, 2024 17:19
@funky-eyes funky-eyes changed the title bugfix: fix XA connection rollback failure (#6492) 补充提交 bugfix: fix XA connection rollback failure Jun 24, 2024
@funky-eyes funky-eyes changed the title bugfix: fix XA connection rollback failure bugfix: fix the issue of xaEnded not being reset Jun 24, 2024
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
请登记pr至2.x.md中
Please log the PR in 2.x.md

@funky-eyes funky-eyes added the type: bug Category issues or prs related to bug. label Jun 24, 2024
@funky-eyes funky-eyes added this to the 2.2.0 milestone Jun 24, 2024
@funky-eyes funky-eyes added mode: XA XA transaction mode module/rm-datasource rm-datasource module labels Jun 24, 2024
@tanyaofei
Copy link
Contributor Author

LGTM 请登记pr至2.x.md中 Please log the PR in 2.x.md

请问2.1已经发了吗,可以合到2.1去吗,这次的修复要跟着上次那个PR一起发版,不然可能会有问题

@tanyaofei tanyaofei force-pushed the 2.x-fix branch 2 times, most recently from 9142b86 to 59b43c4 Compare June 24, 2024 06:32
@funky-eyes
Copy link
Contributor

LGTM 请登记pr至2.x.md中 Please log the PR in 2.x.md

请问2.1已经发了吗,可以合到2.1去吗,这次的修复要跟着上次那个PR一起发版,不然可能会有问题

这个问题出现的概率比较低,而且seata的connectionproxyxa这个connection被放到连接池里复用的概率也很低,除非有datasource去包装seata的datasourceproxyxa进行归还到连接池,否则这个connectionproxyxa对象是一次性的。所以放到2.2没什么太大问题

@@ -31,5 +32,6 @@
- [YeonCheolGit](https://github.com/YeonCheolGit)
- [liuqiufeng](https://github.com/liuqiufeng)
- [Bughue](https://github.com/Bughue)
- [tanyaofei](https://github.com/tanyaofei)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文版中没有登记作者信息

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已补充

@funky-eyes funky-eyes merged commit 7a4d39e into apache:2.x Jun 26, 2024
5 checks passed
@funky-eyes
Copy link
Contributor

@tanyaofei 请把你的钉钉号,通过邮件发送到我的邮箱jianbin@apache.org ,我将邀请你加入seata社区开发者群中,以便沟通

@tanyaofei
Copy link
Contributor Author

jianbin@apache.org

已发送

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mode: XA XA transaction mode module/rm-datasource rm-datasource module type: bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XA 模式一个分支超时,会把IDLE 连接放回连接池,导致其他业务执行异常
2 participants