mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
Merge pull request #119729 from pohly/scheduler-binding-data-race
scheduler: fix data race after binding failure
This commit is contained in:
commit
dfe6685f0f
@ -121,6 +121,7 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
|
|||||||
status := sched.bindingCycle(bindingCycleCtx, state, fwk, scheduleResult, assumedPodInfo, start, podsToActivate)
|
status := sched.bindingCycle(bindingCycleCtx, state, fwk, scheduleResult, assumedPodInfo, start, podsToActivate)
|
||||||
if !status.IsSuccess() {
|
if !status.IsSuccess() {
|
||||||
sched.handleBindingCycleError(bindingCycleCtx, state, fwk, assumedPodInfo, start, scheduleResult, status)
|
sched.handleBindingCycleError(bindingCycleCtx, state, fwk, assumedPodInfo, start, scheduleResult, status)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
// Usually, DonePod is called inside the scheduling queue,
|
// Usually, DonePod is called inside the scheduling queue,
|
||||||
// but in this case, we need to call it here because this Pod won't go back to the scheduling queue.
|
// but in this case, we need to call it here because this Pod won't go back to the scheduling queue.
|
||||||
|
Loading…
Reference in New Issue
Block a user