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

Adding lock to prevent concurrency issue #2215

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

eddynaka
Copy link
Collaborator

@eddynaka eddynaka commented Jan 4, 2021

Description

When we have many threads working with our cache class, we can face a concurrency issue since we are using LinkedList, which is not thread safe. With our latest pull request in the cache area, we changed from dictionary to concurrencyDictionary, that minimized the issue, but the issue was still happening.

Added a new test so we can verify if new changes to the fileRegionsCache keeps working.

Copy link
Member

@michaelcfanning michaelcfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@eddynaka eddynaka merged commit 2c2df9a into main Jan 4, 2021
@eddynaka eddynaka deleted the users/ednakamu/cache-lock-concurrency branch January 4, 2021 16:47
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