Skip to content

Commit

Permalink
Merge 7531b7a into backport/data-race-node-resources-compat/currently…
Browse files Browse the repository at this point in the history
…-balanced-boa
  • Loading branch information
hc-github-team-nomad-core authored Oct 4, 2024
2 parents 7bf7919 + 7531b7a commit e1f242f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/24127.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
state: Fixed a bug where compatibility updates for node topology for nodes older than 1.7.0 were not being correctly applied
```
8 changes: 4 additions & 4 deletions nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ func (n *Node) Canonicalize() {
n.SchedulingEligibility = NodeSchedulingEligible
}

// COMPAT remove in 1.9+
// COMPAT remove in 1.10+
// In v1.7 we introduce Topology into the NodeResources struct which the client
// will fingerprint. Since the upgrade path must cover servers that get upgraded
// before clients which will send the old struct, we synthesize a pseudo topology
Expand Down Expand Up @@ -3209,9 +3209,9 @@ func (n *NodeResources) Copy() *NodeResources {
}
}

// COMPAT remove in 1.9+
// COMPAT remove in 1.10+
// apply compatibility fixups covering node topology
n.Compatibility()
newN.Compatibility()

return newN
}
Expand Down Expand Up @@ -3273,7 +3273,7 @@ func (n *NodeResources) Merge(o *NodeResources) {
}
}

// COMPAT remove in 1.9+
// COMPAT remove in 1.10+
// apply compatibility fixups covering node topology
n.Compatibility()
}
Expand Down

0 comments on commit e1f242f

Please sign in to comment.