Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: fix data race after binding failure
When binding has failed, `Done` gets called by `handleBindingCycleError`. Calling it again is at best redundant and worse, suffers from a data race: - the `assumedPodInfo` is placed in the backoff queue - an event causes the `Pod` pointer to get updated in it - reading `assumedPodInfo.Pod.UID` races with that write This race was found with`go test -race`.
- Loading branch information