Skip to content

Commit 1f8801b

Browse files
committed
Revert "hack to enable preemption"
This reverts commit 25b3397.
1 parent 25b3397 commit 1f8801b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/controller/quota/quotaforestmanager/qm_lib_backend_with_quotasubt_mgr.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -541,14 +541,7 @@ func (qm *QuotaManager) Fits(aw *arbv1.AppWrapper, awResDemands *clusterstateapi
541541
qm.removeConsumer(consumerID)
542542
return doesFit, preemptIds, strings.TrimSpace(allocResponse.GetMessage())
543543
}
544-
if len(allocResponse.GetPreemptedIds()) > 0 {
545-
preemptIds = qm.getAppWrappers(allocResponse.GetPreemptedIds())
546-
} else {
547-
var s []string
548-
s = append(s, allocResponse.GetConsumerID())
549-
preemptIds = qm.getAppWrappers(s)
550-
}
551-
544+
preemptIds = qm.getAppWrappers(allocResponse.GetPreemptedIds())
552545
return doesFit, preemptIds, strings.TrimSpace(allocResponse.GetMessage())
553546
}
554547

0 commit comments

Comments
 (0)