Skip to content

Commit

Permalink
Merge pull request #1023 from xiaoanyunfei/bugfix/victims_preemptee
Browse files Browse the repository at this point in the history
fix duplicate preemptee in victims
  • Loading branch information
volcano-sh-bot authored Sep 3, 2020
2 parents 6523007 + 15690cc commit dace5c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/plugins/drf/drf.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func (drf *drfPlugin) OnSessionOpen(ssn *framework.Session) {
// have the higher weighted share after preemption.
if lNsShareWeighted < rNsShareWeighted {
addVictim(preemptee)
continue
}
if lNsShareWeighted-rNsShareWeighted > shareDelta {
continue
Expand Down

0 comments on commit dace5c5

Please sign in to comment.