Open notnoop opened 4 years ago
Hey there
Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this.
Thanks!
When a struct is persisted in Raft, we must support its schema "forever". Consider
Allocation.TaskResources
field migration toAllocation.AllocatedResources.Task
, we effectively cannot dropAllocation.TaskResources
ever from the allocation struct. If an allocation is created in a Nomad 0.8 (pre AllocatedResources intro) cluster, and the cluster is upgraded in rapid secession to Nomad 0.9 then 0.10, ... then 0.N; at version 0.N we aren't assured that the persisted Raft representationAllocatedResources
is ever populated, and thus always need to fallback to reading TaskResources fields.We can guarantee that a field is no longer needed, if we guarantee that Raft Snapshot and Client Store data have been migrate to latest schema version
Next Steps: