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

UCP: support resolving locks of specific keys

Open sticnarf opened this issue 6 years ago • 2 comments

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)

  • @sticnarf

Recommended Skills

  • Rust
  • TiKV Transaction Model

sticnarf avatar Aug 28 '19 07:08 sticnarf

/pick-up-challenge

Renkai avatar May 22 '20 09:05 Renkai

@Renkai pick up issue success

sre-bot avatar May 22 '20 09:05 sre-bot