Closed kvoli closed 1 year ago
Usages to audit are listed below. The usage were gathered by finding references to db.AdminSplit
using an LSP, then filtering out test files.
pkg/ccl/backupccl
pkg/ccl/streamingccl
pkg/sql
pkg/kv/bulk
Edited above comment for a first pass at the admin split usages.
What protections does AdminSplit
have when a manual key is given, to protect
against the key being a "bad" split which will cause queries to return
incorrect data?
The
AdminSplit
db API is notoriously poor at ensuring that the provided split key argument is safe to actually split at. The split db command relies on the caller to specify a safeSplitKey
argument.This issue is to audit all usages of the
AdminSplit
command, and document:SplitKey
arguments derived.SplitKey
guaranteed to be safe?AdminSplit
methods for possibly unsafeSplitKey
's noted above, if not - could there be.Jira issue: CRDB-31679