Open
Description
Description
Normal resolve lock scans the whole region for locks. With resolve lock lite, we resolve only the specified locks. This can reduce TiKV's load when there are a lot of conflicts.
Task breakdown:
- Add an interface resolve_lock_specified_keys, the protocol is:
message ResolveLockRequest {
Context context = 1;
uint64 start_version = 2;
// If the txn is rolled back, do not set it.
uint64 commit_version = 3;
repeated TxnInfo txn_infos = 4;
// Only resolve specified keys.
repeated bytes keys = 5;
}
Set specified keys for ResolveLockRequest.
Difficulty
- Medium
Score
- 300
Mentor(s)
Recommended Skills
- Rust
- TiKV Transaction Model