-
Notifications
You must be signed in to change notification settings - Fork 740
Closed
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
An accidental modification resulted in historyLoads not being assigned a value. ref #8345
pd/pkg/schedule/schedulers/hot_region.go
Lines 822 to 825 in abcb383
func (bs *balanceSolver) checkSrcHistoryLoadsByPriorityAndTolerance(current, expectLoad *statistics.StoreLoad, toleranceRatio float64) bool { | |
if len(current.HistoryLoads) == 0 { | |
return true | |
} |
pd/pkg/schedule/schedulers/hot_region.go
Lines 1061 to 1064 in abcb383
func (bs *balanceSolver) checkDstHistoryLoadsByPriorityAndTolerance(current, expect *statistics.StoreLoad, toleranceRatio float64) bool { | |
if len(current.HistoryLoads) == 0 { | |
return true | |
} |
What did you do?
What did you expect to see?
What did you see instead?
What version of PD are you using (pd-server -V
)?
Metadata
Metadata
Assignees
Labels
affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.