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.6.x #19947

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.6.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/miserably-classic-jackass branch from 847fa6f to ce24af5 Compare February 12, 2024 13:59
@vercel vercel bot temporarily deployed to Preview – nomad February 12, 2024 14:00 Inactive
@tgross tgross merged commit a9564d7 into release/1.6.x Feb 12, 2024
25 of 26 checks passed
@tgross tgross deleted the backport/plan-apply-fsm-corruption/miserably-classic-jackass 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