Skip to content
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

Filter out invalid JST in ReconcileDifferences #3911

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Sep 6, 2024

ReconcileDifferences was generating invalid jobs state transitions containing a nil Job. The scheduler was filtering these out, however the metrics code wasn't, thus leading to panics when the metrics attempted to access the job.

Rather than make the metrics code also filter these out, I've modified ReconcileDifferences so that these are never returned in the first place. Ideally we would never even create such a transition, but that would be a bigger and more invasive change.

@d80tb7 d80tb7 merged commit af31592 into master Sep 6, 2024
20 checks passed
@d80tb7 d80tb7 deleted the f/chrisma/fix-nil-state-transitions branch September 6, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants