You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Enable async-commit.
Make two transactions conflict on the non-unique secondary index, for example, one transaction inserts a row and the other delete it. Because pessimistic transaction in TiDB doesn't acquire pessimistic locks on the non-unique secondary index, it's possible the second transaction conflicts with the former one while prewriting, and it resolves the lock immediately because of the special logic for resolving non-pessimistic lock conflict: https://github.com/tikv/tikv/blob/54ac25ca0d100fb5969eb0c30290eeb5b65159ff/src/storage/txn/actions/prewrite.rs#L238-L248
The lock isn't resolved because it uses async-commit protocol and it isn't expired.
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 transaction commit successfully.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
v5.0.0-v5.0.3, v5.1.0
The text was updated successfully, but these errors were encountered: