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

Check if oldMachine is nil when updating process group #4180

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Conversation

somtochiama
Copy link
Contributor

@somtochiama somtochiama commented Jan 21, 2025

Change Summary

Sometimes, the oldMachine field in the MachineTuple during deploys is nil and we don't check for this when loading from the healthCheckPassed sync map.

machineTuples = append(machineTuples, machinePairing{oldMachine: nil, newMachine: newMachine})
.

What and Why:
This fixes a panic that users occasionally encounter during deploy

How:

Related to:


Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

@somtochiama somtochiama requested review from kzys and DAlperin January 21, 2025 12:30
@DAlperin
Copy link
Member

I still don't love that I don't know why that is sometimes nil but this is a good defensive programming change anyway 🤷🏼

@somtochiama somtochiama merged commit 0e171f4 into master Jan 21, 2025
28 of 30 checks passed
@somtochiama somtochiama deleted the fix-panic branch January 21, 2025 18:30
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