-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Verify ConcurrentDictionary use, taking into account GetOrAdd can call creation callback more than once #31
Labels
Comments
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…o a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…currentDictionary into a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…o a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Mar 9, 2021
…currentDictionary into a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Sep 19, 2024
…o a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Sep 19, 2024
…<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
NightOwl888
added a commit
that referenced
this issue
Sep 19, 2024
…currentDictionary into a Lazy<T> to ensure two threads cannot load the cache at the same time. (fixes #31)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See apache/lucenenet#417 for a more complete description.
This issue also applies to the
GetOrCreate()
method ofSoftCache
, which should be reviewed.It is suspected that this may be the source of concurrency issues with
ThaiTokenizer
andICUTokenizer
tests of Lucene.NET, which are known to fail without extra locking that was not part of the original design.The text was updated successfully, but these errors were encountered: