SERVER-138340Backlog

Health observers create child CancellationSources off a long living parent source

Recently in SERVER-135020, we discovered that a long lived CancellationSource will hold a strong reference to the child cancellation states of every child CancellationSource until the parent source is canceled or destroyed. This can lead to steadily increasing memory usage until then (see HELP-102354). It looks like we also use this pattern in the health observer code where we have [one global CancellationSource|https://github.com/10gen/mongo/blob/2de947c5f21dd4b1e676823d92f065b1bd3e2c33/src/

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
dino-observabilitydino-tech-debt