top-think / top-think/think-orm
XA事务的问题
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
xa start之后必须xa end,否则不能执行xa commit和xa rollback。源代码在执行xa commit和xa rollback之前并没有执行xa end,实际测试不执行xa end会报错“The command cannot be executed when global transaction is in the ACTIVE state"”
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the XA commit and rollback entry points in the source and trace the transaction state after XA START. Confirm the reported error when XA END is omitted, then verify that the commit and rollback paths handle the required XA END step and that the original transaction flow succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100