Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semaphore around service scopes dictionary #6570

Merged
merged 1 commit into from
May 2, 2024

Conversation

jander-msft
Copy link
Member

@jander-msft jander-msft commented May 2, 2024

Summary

The _activeEndpointServiceScopes dictionary is largely protected from simultaneous mutation using the _activeEndpointsSemaphore semaphore. However, there is one place where this lock is not taken which is likely causing the issue reported in #6569. Add the semaphore usage so that the dictionary is fully protected.

Release Notes Entry

Fix an issue that could cause monitored processes to fail to resume when in listen mode: #6569

@jander-msft jander-msft requested a review from a team as a code owner May 2, 2024 15:56
@jander-msft jander-msft added servicing-minor Servicing fixes that is targeted for a minor release (0.x.0 version) and removed needs-review labels May 2, 2024
@schmittjoseph
Copy link
Member

schmittjoseph commented May 2, 2024

Let's mention this in the release notes as a bug fix. I'll add the appropriate labels if you can update the Release Notes Entry in the PR description.

@schmittjoseph schmittjoseph added the update-release-notes Pull requests that should be mentioned in the release notes label May 2, 2024
@jander-msft jander-msft enabled auto-merge (squash) May 2, 2024 17:12
@jander-msft
Copy link
Member Author

/backport to release/8.0

Copy link
Contributor

github-actions bot commented May 2, 2024

Started backporting to release/8.0: https://github.com/dotnet/dotnet-monitor/actions/runs/8927770640

@jander-msft jander-msft merged commit fa5959e into dotnet:main May 2, 2024
26 checks passed
@jander-msft jander-msft deleted the fix-scopes-semaphore branch May 6, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
servicing-minor Servicing fixes that is targeted for a minor release (0.x.0 version) update-release-notes Pull requests that should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants