[CSHARP-3813] Suppress execution context flow when initializing ServerMonitor Created: 24/Aug/21  Updated: 27/Oct/23  Resolved: 12/Apr/22

Status: Closed
Project: C# Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Boris Dogadov Assignee: Dmitry Lukyanov (Inactive)
Resolution: Gone away Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CSHARP-3811 Memory leak when used in conjunction ... Closed
duplicates CSHARP-3812 Memory leak when used in conjunction ... Closed
is duplicated by CSHARP-4299 Mongodb Csharp Driver 2.13 -Service M... Closed
is duplicated by CSHARP-3997 ServerMonitor captures execution cont... Closed
Related
related to CSHARP-2490 Reimplement SDAM to follow the spec m... Backlog
related to CSHARP-3761 Reimplement SDAM to use a dedicated t... Closed
Case:

 Description   

ServerMonitor  initialization captures  AsyncLocal variables, which might result in memory leak.

https://github.com/mongodb/mongo-csharp-driver/pull/606



 Comments   
Comment by PM Bot [ 12/Apr/22 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Dmitry Lukyanov (Inactive) [ 28/Mar/22 ]

tyler.ohlsen@magnopus.com please check this behavior with the latest driver release (2.15). It should be fixed now.

Comment by Dmitry Lukyanov (Inactive) [ 13/Sep/21 ]

Hey tyler.ohlsen@magnopus.com . This issue is reproducible, however we're going to rewrite this logic in CSHARP-2490, so it's better to postpone any changes here until that time. Then we will recheck this behavior.

Comment by Tyler Ohlsen [ 24/Aug/21 ]

Without this change, a memory leak is present when used in conjunction with the Datadog.Trace library.  More details on this issue.

Generated at Wed Feb 07 21:46:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.