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

Fix For Issue 258 - Thread Safety #274

Conversation

RyanThomas73
Copy link

@RyanThomas73 RyanThomas73 commented Jan 27, 2021

Fix for issue #258

  • Changed the Scope.Services property to type ConcurrentDictionary to prevent the thread safety race condition from occurring.
  • Updated Lamar.AspNetCoreTests.Integration to include a test case that configures and runs a set of health checks, since that is how both reporters on issue 258 have encountered the issue.

Ryan Thomas added 3 commits January 27, 2021 12:43
…lth check request using Microsoft's OOTB health check service which runs the health check registrations in parallel
…entDictionary to prevent the thread safety race condition from occurring
…o that it more reliably reproduces the problem if a plain Dictionary is used and not a ConcurrentDictionary
@jeremydmiller
Copy link
Member

@RyanThomas73 I'm working this one in today. As usual, sorry for the delay and thank you very much for working through this. The only thing I'm changing is swapping out ConcurrentDictionary for the HashMap in ImTools, but that's minor. This will be in Lamar v5.0.3 in the next couple days as I do a Lamar bug sweep

@jeremydmiller
Copy link
Member

It with a rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants