cockroachdb / cockroachdb/cockroach
kvserver: r1 should start at LocalMax, not KeyMin
Open
C-bug
T-kv
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
The first range claims to start at KeyMin. But it doesn't, it starts at LocalMax. This causes various problems. Anecdotally I spend time 3-4x/yr helping someone who is scratching their head because of this.
**Expected behavior**
The first range should start at LocalMax. Nobody owns the keyspace "before" LocalMax - we use it for "local" keys.
**Additional context**
I don't know how simple that change would be. Probably a larger yak shave, but there is also a migration since all clusters out there right now have KeyMin as their r1.Desc().StartKey
Jira issue: CRDB-23297
Contributor guide
Assessment
This issue has not been assessed yet.