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

Allow Select with lock to pass through in vttablet #7584

Merged
merged 3 commits into from Mar 12, 2021

Conversation

harshit-gangal
Copy link
Member

Description

Currently, we do not allow select query with a lock to be executed on mysql outside of a transaction. In MySQL, this is a lock no-op.
Therefore this change is to no handle this case and treat it like a select query and allow it to be executed outside of transaction. For Vitess also it will be a lock no-op.

Related Issue(s)

Checklist

  • Should this PR be backported? NO
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…normal select query in vttablet

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
@harshit-gangal harshit-gangal changed the title Selectlock vttablet fix Allow Select with lock to pass through in vttablet Mar 2, 2021
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
@systay systay merged commit e65686e into vitessio:master Mar 12, 2021
@systay systay deleted the selectlock-vttablet-fix branch March 12, 2021 06:03
@askdba askdba added this to the v10.0 milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

when run sysbench gate reports : INSERT_PK disallowed outside
3 participants