top-think / top-think/think-orm

XA事务的问题

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.