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

graceful node shutdown when manager destroyed #630

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

mkemel
Copy link
Member

@mkemel mkemel commented Nov 7, 2023

Added graceful node_shutdown function that is called before node_unref, which goes over outstanding requests and cancels them.

This fixes a memory leak when bluechi-controller service is stopped via bluechi-controller itself

Fixes #578

@mkemel mkemel marked this pull request as draft November 7, 2023 10:45
@mkemel mkemel marked this pull request as ready for review November 7, 2023 10:45
@mkemel mkemel force-pushed the valgrind-collect-all-logs branch 3 times, most recently from 016adde to 0929f7d Compare November 9, 2023 13:57
@mkemel
Copy link
Member Author

mkemel commented Nov 9, 2023

/packit test

1 similar comment
@mwperina
Copy link
Member

mwperina commented Nov 9, 2023

/packit test

Added graceful node_shutdown function that is called before node_unref
which goes over outstanding requests and cancels them.

This fixes a memory leak when bluechi-controller service is stopped
via bluechi-controller itself

Signed-off-by: Mark Kemel <[email protected]>
@alexlarsson
Copy link
Contributor

lgtm

@mkemel mkemel force-pushed the valgrind-collect-all-logs branch from 0929f7d to 40b14f9 Compare November 13, 2023 09:10
@engelmi engelmi merged commit 790ceb5 into eclipse-bluechi:main Nov 13, 2023
@mkemel mkemel deleted the valgrind-collect-all-logs branch January 10, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

valgrind error in integration test: Leak in manager_add_node (manager.c:256)
4 participants