-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Pessimistic DML should not lock non-unique index keys #36235
Labels
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
severity/major
sig/transaction
SIG:Transaction
type/bug
The issue is confirmed as a bug.
Comments
12 tasks
ekexium
added
severity/major
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
labels
Jul 15, 2022
seiya-annie
added
sig/transaction
SIG:Transaction
and removed
sig/transaction
SIG:Transaction
labels
Jul 15, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Jul 26, 2022
This was referenced Jul 26, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Jul 27, 2022
After this for such execution plans:
The unique key could be locked but #25730 would not work so the LOCK record could accumulate and lead to performance issues. |
Sorry I've replied to the wrong issue. It should be #36438... |
tiancaiamao
pushed a commit
to tiancaiamao/tidb
that referenced
this issue
Sep 1, 2022
12 tasks
ti-chi-bot
pushed a commit
that referenced
this issue
Nov 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
severity/major
sig/transaction
SIG:Transaction
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The update statement is not supposed to lock the index key.
3. What did you see instead (Required)
The update statement acquires a pessimistic lock for the index key.
4. What is your TiDB version? (Required)
master (987bdd3)
The text was updated successfully, but these errors were encountered: