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 XA rollback on commit failure (#6492) #6496

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Conversation

tanyaofei
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

修复 XA 模式下执行长时间 SQL(或死锁 SQL) 没有完成回滚就 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

  1. autoCommit = true 的情况下 SQLSTATE_XA_NOT_END 可以避免 ExecuteTemplateXA 再次 rollback
  2. autoCommit = false 的情况下不会 doRollbackOnCommitException

changes/en-us/2.x.md Outdated Show resolved Hide resolved
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
Please send your DingTalk account to my email address [email protected], and I will invite you to join the Seata developer group.

@funky-eyes funky-eyes added this to the 2.1.0 milestone Apr 24, 2024
@funky-eyes funky-eyes added type: bug Category issues or prs related to bug. mode: XA XA transaction mode module/rm-datasource rm-datasource module labels Apr 24, 2024
@funky-eyes funky-eyes added the first-time contributor first-time contributor label Apr 24, 2024
@funky-eyes funky-eyes merged commit c55ff6d into apache:2.x Apr 24, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time contributor first-time contributor 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