lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mathew (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENENET-609) Lucene.Net.Support.IO.FileSupport::fileCanonPathCache is not thread safe
Date Fri, 07 Jun 2019 00:25:00 GMT
Thomas Mathew created LUCENENET-609:
---------------------------------------

             Summary: Lucene.Net.Support.IO.FileSupport::fileCanonPathCache is not thread
safe
                 Key: LUCENENET-609
                 URL: https://issues.apache.org/jira/browse/LUCENENET-609
             Project: Lucene.Net
          Issue Type: Bug
          Components: Lucene.Net Core
         Environment: Windows (any version)
            Reporter: Thomas Mathew


Lucene.Net.Support.IO.FileSupport is a static class with a normal dictionary used as a cache.
If called concurrently multiple times (enough to force the dictionary to resize), concurrent
calls will fail with an IndexOutOfRangeException
{code:java}
private static readonly IDictionary<string, string> fileCanonPathCache = new Dictionary<string,
string>();
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message