Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #11564 for more details.
- Loading branch information