cockroachdb / cockroachdb/cockroach

kvserver: r1 should start at LocalMax, not KeyMin

Open
#95,055 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.