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

False positive of assertion when pessimistic lock is lost #38365

Closed
ekexium opened this issue Oct 10, 2022 · 0 comments · Fixed by tikv/client-go#596 or #38392
Closed

False positive of assertion when pessimistic lock is lost #38365

ekexium opened this issue Oct 10, 2022 · 0 comments · Fixed by tikv/client-go#596 or #38392
Labels
severity/moderate sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@ekexium
Copy link
Contributor

ekexium commented Oct 10, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2 sessions both with @@tidb_constraint_check_in_place_pessimistic = 0
session 1: begins a pessimistic transaction select for update read a non-existent row
session 2: begins a pessimistic transaction, insert 2 rows, one of which is the row read above. Commit.
session 1: read the second row session just inserted to update its for_update_ts, and then update the row it has locked before. Commit.

2. What did you expect to see? (Required)

No assertion error.

3. What did you see instead (Required)

session 1: assertion failure

4. What is your TiDB version? (Required)

6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants