Skip to content

UCP: support resolving locks of specific keys #111

Open
@sticnarf

Description

@sticnarf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    challenge-program-2enhancementNew feature or requesthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions