client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

n what situations will TiKV return a write conflict error when using pessimistic transactions?

Open HughPenn opened this issue 8 months ago • 1 comments

Doesn't TiKV acquire a lock on the key in pessimistic transactions? Why would a write conflict error still occur?

Image

HughPenn avatar Apr 11 '25 07:04 HughPenn

get_for_update/batch_get_for_update if you want lock the key while query. Can you provide a minimum reproducible code snippet?

mzygQAQ avatar Apr 24 '25 02:04 mzygQAQ