kvserver: RPC to lock a key span for exclusive access #70431
Labels
A-kv-server
Relating to the KV-level RPC server
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
no-issue-activity
T-kv
KV Team
X-stale
As described in #69380, even though we want to move to MVCC-compliant operations (#70429), we will still have some use for non-MVCC operations such as
RevertRange
, e.g. during streaming replication cutover. However, we should formalize the use of these operations by requiring the key span to be globally locked for access, to ensure that no other components are interacting with the span during this time. This would likely involve some sort ofLockSpan
RPC used to acquire and release global locks for a key span, with a lock token that must be used by when sending non-MVCC RPC commands likeRevertRange
,ClearRange
, andAddSSTable
with historical timestamps.Jira issue: CRDB-10073
The text was updated successfully, but these errors were encountered: