-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduler: fix reconnecting allocations getting rescheduled #24165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great @mismithhisler!
I ran a test coverage report via go test -v -count=1 -cover -coverprofile=$HOME/cover.out ./scheduler && go tool cover -html=$HOME/cover.out
and found that we're missing coverage in two places in this method. Normally we're not sticklers for test coverage but this is clearly a very tricky area of the code. The two areas are:
Let's try to add a test that covers these two areas, to make sure we're not missing anything. And don't forget to run make cl
to add a change log entry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
9c49244
to
d386dde
Compare
In scenarios where a disconnected client reconnects with failed replacement allocs, the reconcile strategy for picking the correct allocation was not working. These changes allow evaluation of multiple replacement allocs, and the stopping of allocs that are in a client terminal status.