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 state: fix state store corruption in plan apply into release/1.5.x #19946

Conversation

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

Backport

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

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


The state store's UpsertPlanResults method canonicalizes allocations in order to upgrade them to a new version. But the method does not copy the allocation before doing so, which can potentially corrupt the state store. This hasn't been implicated in any known user-facing bugs, but was detected when running Nomad under a build with the Go toolchain's data race detection enabled.

Noticed while working on #19932, but it looks like this bug has existed since 0.10.4


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/plan-apply-fsm-corruption/reasonably-bursting-crawdad branch from 5a69e24 to 996584a Compare February 12, 2024 13:59
@vercel vercel bot temporarily deployed to Preview – nomad February 12, 2024 14:00 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui February 12, 2024 14:09 Inactive
@tgross tgross merged commit c41ac3e into release/1.5.x Feb 12, 2024
22 of 26 checks passed
@tgross tgross deleted the backport/plan-apply-fsm-corruption/reasonably-bursting-crawdad branch February 12, 2024 14:15
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