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

Server side transaction failure in Cluster Mode #702

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

Xizt
Copy link
Contributor

@Xizt Xizt commented Oct 4, 2024

Issue:
We created a custom server side transaction and tested the behavior. The commands ran perfectly fine for the transaction.
However, when deployed to our k8s cluster, we saw that the transactions failed with error: (error) ERR Transaction failed.

We then tried reproducing the error locally when running Garnet in cluster mode and were able to reproduce the issue.
The error occurred the Prepare stage of the transaction when we tried to obtain a lock on the key.

CustomTransactionProcedure > AddKey > txnManager.VerifyKeyOwnership > clusterSession is null.

The PR attempts to give a try at fixing it.
ClusterSession is null in TransactionManager as it's initialized after TransactionManager and not assigned later.

Xizt and others added 3 commits October 4, 2024 17:13
@badrishc badrishc merged commit 28328d0 into microsoft:main Oct 4, 2024
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants