Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
73023: kvserver: don't allow manually enqueueing uninitialized replicas r=aliher1911,tbg a=erikgrinaker Normally, `baseQueue.maybeAdd()` prevents uninitialized replicas from being enqueued in e.g. the replica GC queue. However, this was not checked when manually enqueueing ranges via `Store.ManuallyEnqueue()`. This could e.g. cause the replica GC queue to crash the local node when it tried to remove an uninitialized replica via `Store.RemoveReplica()`. This patch adds a check to `Store.ManuallyEnqueue()` that returns an error if the replica is uninitialized, to avoid crashing the node, and to indicate to the user why the range could not be enqueued. Resolves #62709. Release note (bug fix): Manually enqueueing ranges via the DB Console will no longer crash nodes that contain an uninitialized replica for the enqueued range. Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information