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

Backport of numa: fix scheduler panic due to topology serialization bug into release/1.8.x #23300

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #23284 to be assessed for backporting due to the inclusion of the label backport/1.8.x.

The below text is copied from the body of the original PR.


The NUMA topology struct field NodeIDs is a idset.Set, which has no public members. As a result, this field is never serialized via msgpack and persisted in state. When numa.affinity = "prefer", the scheduler dereferences this nil field and panics the scheduler worker.

Ideally we would fix this by adding a msgpack serialization extension, but because the field already exists and is just always empty, this breaks RPC wire compatibility across upgrades. Instead, create a new field that's populated at the same time we populate the more useful idset.Set, and repopulate the set on demand.

Fixes: https://hashicorp.atlassian.net/browse/NET-9924
Ref: https://github.com/hashicorp/nomad-enterprise/pull/1527


Overview of commits

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

@tgross tgross merged commit 2eda8d1 into release/1.8.x Jun 11, 2024
18 of 19 checks passed
@tgross tgross deleted the backport/numa-nodeids-serialization/brightly-fast-aphid branch June 11, 2024 13:14
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.

2 participants