Files
nomad/scheduler
Tim Gross 036282bafd scheduler: fix panic in system jobs when nodes filtered by class (#11565)
In the system scheduler, if a subset of clients are filtered by class,
we hit a code path where the `AllocMetric` has been copied, but the
`Copy` method does not instantiate the various maps. This leads to an
assignment to a nil map. This changeset ensures that the maps are
non-nil before continuing.

The `Copy` method relies on functions in the `helper` package that all
return nil slices or maps when passed zero-length inputs. This
changeset to fix the panic bug intentionally defers updating those
functions because it'll have potential impact on memory usage. See
https://github.com/hashicorp/nomad/issues/11564 for more details.
2021-11-24 12:28:47 -05:00
..
2018-12-06 15:09:26 -08:00
2020-10-19 09:30:15 -04:00
2021-10-01 10:14:28 -04:00
2018-09-15 16:23:13 -07:00
2021-10-01 10:14:28 -04:00
2020-10-19 09:30:15 -04:00
2021-10-01 10:14:28 -04:00