-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…12377) ref #12369, close pingcap/tidb#34066 If a retried prewrite encounters a newer lock, the result may be not idempotent. This happens when the first prewrite succeeds and the transaction is committed by resolving async-commit locks. Then, TiKV returns KeyIsLocked in the retry while the first prewrite succeeds. If the client does not handle it carefully, the client may report a false commit failure to the user. This commit fixes the bug, making prewrite idempotent in this case. Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: Yilin Chen <sticnarf@gmail.com> Co-authored-by: Yilin Chen <sticnarf@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
- Loading branch information
1 parent
acc800e
commit 43456c6
Showing
1 changed file
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters