-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Lock Session Support #6517
Lock Session Support #6517
Conversation
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
34a15f0
to
c7eeebe
Compare
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…ions Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…ysql Signed-off-by: Harshit Gangal <harshit@planetscale.com>
All the end to end test are related to lock are working. I have updated the correct expectation for end to end test when a tx fails while holding a lock. Some unit test are pending for the new flow of ExecuteLock. |
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff. Only nitpicks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG. You can merge after comments are addressed.
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Review if anyone is looking for lock support in 7.0. |
Currently the lock function support relies on existing shard session within VTGate Session.
We will have a different Shard session called lock session to support this feature.
Locking and transaction are orthogonal and to not interfere with each other they need a separate code path to manage.