Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduler: fix a bug where force GC wasn't respected #24456

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Nov 13, 2024

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

@pkazmierczak pkazmierczak self-assigned this Nov 13, 2024
@pkazmierczak pkazmierczak added the backport/1.9.x backport to 1.9.x release line label Nov 13, 2024
@pkazmierczak pkazmierczak added this to the 1.9.x milestone Nov 13, 2024
nomad/core_sched.go Outdated Show resolved Hide resolved
Copy link
Member

@mismithhisler mismithhisler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pkazmierczak pkazmierczak merged commit 6ccfcc3 into main Nov 21, 2024
26 checks passed
@pkazmierczak pkazmierczak deleted the b-fix-system-gc branch November 21, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.9.x backport to 1.9.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad system gc not working as expected
3 participants