Skip to content

txn: make the unique key lock behaviour consistent for all executors #22837

@cfzjywxk

Description

@cfzjywxk

Development Task

After #21483, we'll try to lock all the related unique keys for pessimistic transactions if the executor is pointGet or batchPointGet. For other coprocessor related executors, we should also implement this for them, and make the lock behaviours consistent.
Tasks are:

  • Try to lock all unique keys for existing data for all executors, make them behave the same.
  • Make a detailed and improved document about the pessimistic lock behaviours of TiDB.

Another possible solution is to push down the pessimistic lock operations into the kv requests doing data read, the difference behaviours could be resolved, check rfc for more details.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions