Skip to content

Commit

Permalink
fix duplicate preemptee in victims
Browse files Browse the repository at this point in the history
Signed-off-by: xiaofei.sun <sunxiaofei@kuaishou.com>
  • Loading branch information
xiaofei.sun committed Sep 2, 2020
1 parent ad3a8a1 commit 15690cc
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 15690cc

Please sign in to comment.