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

Query transaction order #3615

Closed
tirsen opened this issue Feb 2, 2018 · 1 comment
Closed

Query transaction order #3615

tirsen opened this issue Feb 2, 2018 · 1 comment

Comments

@tirsen
Copy link
Collaborator

tirsen commented Feb 2, 2018

Strict ordering of transaction commits is critical when designing safe distributed transactions without 2PC. Currently we use Hibernate interceptors to detect the transaction order and make asserts at the in critical multi shard functions. This is flawed because a raw non-Hibernate update could change the transaction order without us detecting it.

It would be better if we had some form of function which returns the order which shards transactions will be committed in the currently running session.

@ajm188 ajm188 removed the P3 label Mar 9, 2023
frouioui pushed a commit to planetscale/vitess that referenced this issue Nov 21, 2023
Signed-off-by: Dirkjan Bussink <[email protected]>
Co-authored-by: Dirkjan Bussink <[email protected]>
@GuptaManan100
Copy link
Member

We are currently working on adding atomic transactions #16245 which should alleviate the need for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants