Skip to content

kv: return error on locking request in LeafTxn #97817

@nvb

Description

@nvb

In #94290, we saw that locking requests could be issued through a LeafTxn and the lock spans would be silently dropped, leading to delayed unlocking once the locker transaction was committed. We don't support locking requests passed through a LeafTxn, so we should assert against this and return an error to clients that issue such requests.

Jira issue: CRDB-25806

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-kv-clientRelating to the KV client and the KV interface.A-kv-transactionsRelating to MVCC and the transactional model.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-kvKV Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions