Repository navigation
tentacle: mgr: erase daemon_connections ref on reset for all peer types - #71009
Merged
Merged
Conversation
…types handle_open() stores a strong ConnectionRef in daemon_connections for every non-client daemon (mon, mds, osd), but ms_handle_reset() erased it only for OSD peers. Any non-OSD daemon connection that ended without an explicit MMgrClose (idle timeout, network drop, daemon crash) left a permanent ConnectionRef behind. That leaked one AsyncConnection per reconnect cycle and caused unbounded ceph-mgr RSS growth. Erase daemon_connections unconditionally on reset while keeping osd_cons cleanup under the OSD peer-type guard. Fixes: https://tracker.ceph.com/issues/78408 Signed-off-by: Sunnatillo <[email protected]> (cherry picked from commit a996144)
Contributor
Author
|
@Sunnatillo i needed that backport. please check |
Contributor
|
This PR has been added to wip-yuri14-testing-20260812.153525-tentacle. |
Contributor
|
Looks good to me! I'll get the backport PRs for Umbrella and Squid open. |
stzuraski898
approved these changes
Aug 12, 2026
Contributor
Contributor
|
Lets merge this if everything looks good. |
batrick
approved these changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/79419
backport of #70367
parent tracker: https://tracker.ceph.com/issues/78408
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh