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

Will pressure testing put on the same key with pessimistic transactions result in a write conflict error?

Open HughPenn opened this issue 8 months ago • 2 comments

As stated in the title

HughPenn avatar Mar 26 '25 04:03 HughPenn

It should not. Pessimistic transactions will acquire the lock of keys before prewrite. Once the locks are acquired, other transactions (try to lock these keys as well) are blocked.

pingyu avatar Mar 26 '25 07:03 pingyu

It should not. Pessimistic transactions will acquire the lock of keys before prewrite. Once the locks are acquired, other transactions (try to lock these keys as well) are blocked.

How can I lock a row of data via a specific primary key, even if it won't be modified?

Xusm1129 avatar Apr 13 '25 15:04 Xusm1129