mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
client: fix JSON formatted logs when failing to reserve cores (#25523)
Fixed a bug where JSON formatted logs would not show the requested and overlapping cores when failing to reserve cores
This commit is contained in:
3
.changelog/25523.txt
Normal file
3
.changelog/25523.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
client: Fixed a bug where JSON formatted logs would not show the requested and overlapping cores when failing to reserve cores
|
||||
```
|
||||
@@ -85,7 +85,7 @@ func (p *partition) Reserve(cores *idset.Set[hw.CoreID]) error {
|
||||
overlappingCores := p.reserve.Intersect(usableCores)
|
||||
if overlappingCores.Size() > 0 {
|
||||
// COMPAT: prior to Nomad 1.9.X this would silently happen, this should probably return an error instead
|
||||
p.log.Warn("Unable to exclusively reserve the requested cores", "cores", cores, "overlapping_cores", overlappingCores)
|
||||
p.log.Warn("Unable to exclusively reserve the requested cores", "cores", cores.Slice(), "overlapping_cores", overlappingCores.Slice())
|
||||
}
|
||||
|
||||
p.share.RemoveSet(cores)
|
||||
|
||||
Reference in New Issue
Block a user