Closed
Description
Component(s)
pkg/stanza
What happened?
Description
@pjanotti noticed this here (#35520)
Steps to Reproduce
See the comment above. Since Subscription::Close
does not close the remote session handle, it is leaked. This will happen when the operator resubscribes due to the remote host restarting, for example.
Expected Result
The remote session handle should be closed properly so it does not get leaked.
Actual Result
Collector version
v0.110.0
Environment information
N/A
OpenTelemetry Collector configuration
N/A
Log output
N/A
Additional context
N/A