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

plugins: fix nomadTopologyToProto panic on systems that don't support NUMA #23399

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Jun 20, 2024

After changes introduced in #23284 we no longer need to make a if !st.SupportsNUMA() check in the GetNodes() topology method. In fact this check will now cause panic in nomadTopologyToProto method on systems that don't support NUMA.

Fixes #23385
Internal ref: https://hashicorp.atlassian.net/browse/NET-10134

@pkazmierczak pkazmierczak force-pushed the b-win11-startup-panic branch from c4b1fe2 to 1873bcc Compare July 5, 2024 08:33
@pkazmierczak pkazmierczak self-assigned this Jul 5, 2024
@pkazmierczak pkazmierczak changed the title plugins: fix serialization panic on non-linux systems plugins: fix nomadTopologyToProto panic on systems that don't support NUMA Jul 5, 2024
@pkazmierczak pkazmierczak marked this pull request as ready for review July 5, 2024 08:38
@pkazmierczak pkazmierczak requested review from shoenig and tgross July 5, 2024 08:38
@pkazmierczak pkazmierczak added backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.8.x backport to 1.8.x release line labels Jul 5, 2024
@pkazmierczak pkazmierczak added this to the 1.8.2 milestone Jul 5, 2024
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

@pkazmierczak pkazmierczak merged commit 7772711 into main Jul 9, 2024
20 checks passed
@pkazmierczak pkazmierczak deleted the b-win11-startup-panic branch July 9, 2024 06:41
@tgross tgross added the backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.7.x+ent Changes are backported to 1.7.x+ent backport/ent/1.8.x+ent Changes are backported to 1.8.x+ent backport/1.8.x backport to 1.8.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on nomad startup after upgrading to 1.8.1
2 participants