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

[feature] radon xa transaction admin command #602

Closed
BohuTANG opened this issue Apr 9, 2020 · 1 comment
Closed

[feature] radon xa transaction admin command #602

BohuTANG opened this issue Apr 9, 2020 · 1 comment
Assignees
Labels
P0 High priority type: feature
Milestone

Comments

@BohuTANG
Copy link
Contributor

BohuTANG commented Apr 9, 2020

Add xa admin commands:

  1. radon xa recover
mysql > radon xa recover;
+----------+--------------+
| formatID | backend |
+----------+--------------+
|     xxx |   xx          |
+----------+--------------+
1 row in set (0.00 sec)
  1. radon xa rollback;
    rollback all the xa transaction

  2. radon xa commit;
    commit all the xa transaction

@BohuTANG BohuTANG added type: feature P0 High priority labels Apr 9, 2020
@BohuTANG BohuTANG added this to the v1.1.0 milestone Apr 9, 2020
@andyli029
Copy link
Contributor

ACK

@BohuTANG BohuTANG modified the milestones: v1.1.0, next, v1.1.1 Apr 15, 2020
@BohuTANG BohuTANG modified the milestones: v1.1.1, next May 14, 2020
@BohuTANG BohuTANG modified the milestones: next, v1.1.2 Jun 3, 2020
andyli029 added a commit to andyli029/radon that referenced this issue Jun 9, 2020
[summary]
NOTICE: First find the core cause to the prepared XA, before doing the cmd about
radon xa rollback/commit

add radon xa admin command:
radon xa recover: get the info about prepared XA
radon xa rollback: rollback all the xa transaction
radon xa commit: commit all the xa transaction

[test case]
src/proxy/admin_xa_test.go

[patch codecov]
src/proxy/admin_xa.go 100%
andyli029 added a commit to andyli029/radon that referenced this issue Jun 10, 2020
[summary]
NOTICE: First find the core cause to the prepared XA, before doing the cmd about
radon xa rollback/commit

add radon xa admin command:
radon xa recover: get the info about prepared XA
radon xa rollback: rollback all the xa transaction
radon xa commit: commit all the xa transaction

[test case]
src/proxy/admin_xa_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/radon_test.go

[patch codecov]
src/proxy/admin_xa.go 100%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 100%
andyli029 added a commit to andyli029/radon that referenced this issue Jun 10, 2020
[summary]
NOTICE: First find the core cause to the prepared XA, before doing the cmd about
radon xa rollback/commit

add radon xa admin command:
radon xa recover: get the info about prepared XA
radon xa rollback: rollback all the xa transaction
radon xa commit: commit all the xa transaction

[test case]
src/proxy/admin_xa_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/radon_test.go

[patch codecov]
src/proxy/admin_xa.go 100%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 100%
andyli029 added a commit to andyli029/radon that referenced this issue Jun 10, 2020
[summary]
NOTICE: Firstly find the core cause to the prepared XA, before doing the cmd about
radon xa rollback/commit

add radon xa admin command:
radon xa recover: get the info about prepared XA
radon xa rollback: rollback all the xa transaction
radon xa commit: commit all the xa transaction

[test case]
src/proxy/admin_xa_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/radon_test.go

[patch codecov]
src/proxy/admin_xa.go 100%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 100%
andyli029 added a commit to andyli029/radon that referenced this issue Jun 11, 2020
[summary]
NOTICE: Firstly find the core cause to the prepared XA, before doing the cmd about
radon xa rollback/commit

add radon xa admin command:
radon xa recover: get the info about prepared XA
radon xa rollback: rollback all the xa transaction
radon xa commit: commit all the xa transaction

[test case]
src/proxy/admin_xa_test.go
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/radon_test.go

[patch codecov]
src/proxy/admin_xa.go 100%
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go 100%
BohuTANG added a commit that referenced this issue Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 High priority type: feature
Projects
None yet
Development

No branches or pull requests

2 participants