From 15690cce91d56b8b983499d85c228ae3c00b70af Mon Sep 17 00:00:00 2001 From: "xiaofei.sun" Date: Fri, 28 Aug 2020 15:01:00 +0800 Subject: [PATCH] fix duplicate preemptee in victims Signed-off-by: xiaofei.sun --- pkg/scheduler/plugins/drf/drf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scheduler/plugins/drf/drf.go b/pkg/scheduler/plugins/drf/drf.go index 412ea23fef..f7c489646b 100644 --- a/pkg/scheduler/plugins/drf/drf.go +++ b/pkg/scheduler/plugins/drf/drf.go @@ -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