diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index e11ed85c807..882e1773a4f 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -466,6 +466,7 @@ func (s *StateStore) UpsertPlanResults(msgType structs.MessageType, index uint64 // handle upgrade path for _, alloc := range allocsToUpsert { + alloc = alloc.Copy() alloc.Canonicalize() }