Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: re-add spuriously removed nil check in
relocateOne
e924d91 introduced a bug by spuriously removing a nil check over the result of a call to `allocateTargetFromList`. This commit re-adds the check. The bug could cause a panic when `AdminRelocateRange` was called by the `StoreRebalancer` or the `mergeQueue` if one (or more) of the stores that are supposed to receive a replica for a range become unfit for receiving the replica (due to balancing reasons / or shifting constraints) _between when rebalancing decision is made and when it's executed_. Resolves cockroachdb#60812 Release justification: fixes bug that causes a panic Release note: None
- Loading branch information