-
Notifications
You must be signed in to change notification settings - Fork 26
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
(RHEL-55301) Don't GC unit if it is in another queue #299
base: main
Are you sure you want to change the base?
Conversation
The gc_unit_queue is dispatched before the cgroup_empty_queue. Because of this, when we enter in on_cgroup_empty_event, the unit in cgroup_empty_queue may already have been freed and we don't clean up the corresponding cgroup. With this change, we prevent the unit from being garbage collected if it is in the cgroup_empty_queue. (cherry picked from commit 8db9989) Resolves: RHEL-55301
This change removes the pruning of cgroups for FAILED/INACTIVE units from per-unit-type handlers and moves it in on_cgroup_empty_event. (cherry picked from commit 380dd17) Related: RHEL-55301
In test-execute, only the unit was started, not the slice. Because of that the slice cgroup was pruned even if it was still needed. From what I can tell, this is because, in the test, we don't have all the mechanics that starts the slice for a service. To fix the issue the slice is started manually. (cherry picked from commit fc6172b) Related: RHEL-55301
Let's make sure that D-Bus messages are always sent out when pending, before we might GC a unit/job. This is kinda a follow-up for 8db9989, and a similar logic really applies: GC should only be done if we processed everything else, generated evertyhing else and really don't need it anymore. (cherry picked from commit af05bb9) Related: RHEL-55301
set -o pipefail | ||
|
||
# shellcheck source=test/units/util.sh | ||
. "$(dirname "$0")"/util.sh |
Check notice
Code scanning / shellcheck
Not following: test/units/util.sh: openBinaryFile: does not exist (No such file or directory) Note test
Commit validationTracker - RHEL-55301 The following commits meet all requirements
Tracker validationSuccess🟢 Tracker RHEL-55301 has set desired product: Pull Request validationFailed🔴 Failed or pending checks - |
Resolves: RHEL-55301