hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.98k stars 1.96k forks source link

Backport of scheduler: fix a bug where force GC wasn't respected into release/1.9.x #24523

Closed hc-github-team-nomad-core closed 5 days ago

hc-github-team-nomad-core commented 5 days ago

Backport

This PR is auto-generated from #24456 to be assessed for backporting due to the inclusion of the label backport/1.9.x.

The below text is copied from the body of the original PR.


This PR fixes a bug where System.GarbageCollect endpoint didn't work on objects that weren't older than their respective GC thresholds. System.GarbageCollect is used to force garbage collection (also used by the system gc command) and should ignore any GC threshold settings.

Fixes #24455 Internal ref: https://hashicorp.atlassian.net/browse/NET-11747


Overview of commits - 6ccfcc37a30b34f5f76fece890af1c42a510ea9c