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

Support for XA transaction termination #40

Open
sciascid opened this issue Mar 18, 2019 · 0 comments
Open

Support for XA transaction termination #40

sciascid opened this issue Mar 18, 2019 · 0 comments
Assignees

Comments

@sciascid
Copy link
Contributor

sciascid commented Mar 18, 2019

Enhance wsrep api to support the following use case:
If the master of a prepared XA transaction fails, then it should be possible to terminate (commit or rollback) the transaction from another node in the cluster.
In order to do so, the application should be able to pass the necessary information to the provider so that a commit/rollback fragment can be sent on behalf of the failed master. The information consists of server and transaction ids.
One possible way to achieve this would be to add function with the following signature:

wsrep_status_t xa_recover(const wsrep_uuid_t*, wsrep_trx_id_t)

or

wsrep_status_t xa_recover(const wsrep_stid_t*)

xa_recover would be called before terminating the transaction through certify() or rollback().

@sciascid sciascid self-assigned this Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant