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

[core] nil check and error handling for client status in heartbeat responses #17316

Merged
merged 3 commits into from
May 25, 2023

Conversation

angrycub
Copy link
Contributor

Add a nil check to constructNodeServerInfoResponse to manage an apparent race between deregister and client heartbeats.

Should fix #17310

@angrycub angrycub self-assigned this May 25, 2023
@angrycub angrycub requested a review from tgross May 25, 2023 17:21
@angrycub angrycub added type/bug theme/core stage/accepted Confirmed, and intend to work on. No timeline committment though. labels May 25, 2023
@angrycub angrycub changed the title nil check and error handling for client status in heartbeat responses [core] nil check and error handling for client status in heartbeat responses May 25, 2023
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@angrycub angrycub merged commit 4510f6d into main May 25, 2023
12 checks passed
@angrycub angrycub deleted the b-panic-eligibility-race branch May 25, 2023 20:04
@angrycub angrycub added backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line labels May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.4.x backport to 1.4.x release line backport/1.5.x backport to 1.5.x release line stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/core type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad v1.4.3 crashes with 'panic: runtime error: invalid memory address or nil pointer dereference'
2 participants