From c41ac3ea4301dcfdd34c9fa60b790b2ba9556a1b Mon Sep 17 00:00:00 2001 From: hc-github-team-nomad-core <82989552+hc-github-team-nomad-core@users.noreply.github.com> Date: Mon, 12 Feb 2024 08:15:51 -0600 Subject: [PATCH] Backport of state: fix state store corruption in plan apply into release/1.5.x (#19946) Co-authored-by: Tim Gross --- nomad/state/state_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index aaaaebbb111..7af54b69492 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -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() }