Skip to content

Commit

Permalink
Backport of state: fix state store corruption in plan apply into rele…
Browse files Browse the repository at this point in the history
…ase/1.5.x (#19946)

Co-authored-by: Tim Gross <[email protected]>
  • Loading branch information
hc-github-team-nomad-core and tgross authored Feb 12, 2024
1 parent aff55ad commit c41ac3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ func (s *StateStore) UpsertPlanResults(msgType structs.MessageType, index uint64

// handle upgrade path
for _, alloc := range allocsToUpsert {
alloc = alloc.Copy()
alloc.Canonicalize()
}

Expand Down

0 comments on commit c41ac3e

Please sign in to comment.