[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: |
|
||||||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||||||
| 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. |