Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pkg/kv/kvserver/allocator/allocatorimpl/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -965,10 +965,12 @@ func (a *Allocator) ComputeAction(
// the caller expects the processing logic to be invoked even if there's a
// priority inversion. If the priority is not -1, the range might be re-queued
// to be processed with the correct priority.
if priority == -1 && buildutil.CrdbTestBuild {
log.Dev.Fatalf(ctx, "allocator returned -1 priority for range %s: %v", desc, action)
} else {
log.Dev.Warningf(ctx, "allocator returned -1 priority for range %s: %v", desc, action)
if priority == -1 {
if buildutil.CrdbTestBuild {
log.Dev.Fatalf(ctx, "allocator returned -1 priority for range %s: %v", desc, action)
} else {
log.Dev.Warningf(ctx, "allocator returned -1 priority for range %s: %v", desc, action)
}
}
return action, priority
}
Expand Down