Skip to content

Allow Select with lock to pass through in vttablet#7584

Merged
systay merged 3 commits intovitessio:masterfrom
planetscale:selectlock-vttablet-fix
Mar 12, 2021
Merged

Allow Select with lock to pass through in vttablet#7584
systay merged 3 commits intovitessio:masterfrom
planetscale:selectlock-vttablet-fix

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>
@harshit-gangal harshit-gangal requested a review from sougou as a code owner March 2, 2021 17:55
@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