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

Lock Session Support #6517

Merged
merged 14 commits into from
Aug 10, 2020
Merged

Lock Session Support #6517

merged 14 commits into from
Aug 10, 2020

Conversation

harshit-gangal
Copy link
Member

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.

@harshit-gangal harshit-gangal requested a review from sougou July 31, 2020 08:04
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>
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>
@harshit-gangal harshit-gangal marked this pull request as ready for review July 31, 2020 14:10
@harshit-gangal
Copy link
Member Author

harshit-gangal commented Jul 31, 2020

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>
Copy link
Collaborator

@systay systay left a 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

Copy link
Contributor

@sougou sougou left a 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>
@harshit-gangal harshit-gangal merged commit 2130a0e into vitessio:master Aug 10, 2020
@deepthi
Copy link
Member

deepthi commented Aug 11, 2020

Review if anyone is looking for lock support in 7.0.

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

Successfully merging this pull request may close these issues.

5 participants