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

Make constraint cache thread safe #17146

Merged
merged 2 commits into from Nov 16, 2019
Merged

Make constraint cache thread safe #17146

merged 2 commits into from Nov 16, 2019

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Nov 15, 2019

Fixes: #17101

This changes the constraint cache to use ConcurrentDictionary. This code
is invoked in a multithreaded way in Blazor server resulting in internal
failures in dictionary.

Since this is a threading issue there's no good way to unit test it, but
I noticed we're missing tests in general for this class, so I added a
few for the caching behavior.

@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Nov 15, 2019
@rynowak rynowak changed the base branch from master to release/3.1 November 15, 2019 20:51
Fixes: #17101

This changes the constraint cache to use ConcurrentDictionary. This code
is invoked in a multithreaded way in Blazor server resulting in internal
failures in dictionary.

Since this is a threading issue there's no good way to unit test it, but
I noticed we're missing tests in general for this class, so I added a
few for the caching behavior.
@rynowak
Copy link
Member Author

rynowak commented Nov 15, 2019

@pranavkm

@danmoseley
Copy link
Member

Approved by 3.1 QB

@wtgodbe wtgodbe added the Servicing-approved Shiproom has approved the issue label Nov 15, 2019
@wtgodbe wtgodbe merged commit 8f8b5f5 into release/3.1 Nov 16, 2019
@wtgodbe wtgodbe deleted the rynowak/fix-17101 branch November 16, 2019 05:21
@rynowak
Copy link
Member Author

rynowak commented Nov 16, 2019

Thanks @wtgodbe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants