Skip to content

Commit

Permalink
Merge pull request kubernetes#119729 from pohly/scheduler-binding-dat…
Browse files Browse the repository at this point in the history
…a-race

scheduler: fix data race after binding failure
  • Loading branch information
k8s-ci-robot committed Aug 2, 2023
2 parents 9919063 + 2f30fae commit dfe6685
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/schedule_one.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
status := sched.bindingCycle(bindingCycleCtx, state, fwk, scheduleResult, assumedPodInfo, start, podsToActivate)
if !status.IsSuccess() {
sched.handleBindingCycleError(bindingCycleCtx, state, fwk, assumedPodInfo, start, scheduleResult, status)
return
}
// 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.
Expand Down

0 comments on commit dfe6685

Please sign in to comment.