You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Thomas Mathew (JIRA)" <ji...@apache.org> on 2019/06/07 00:25:00 UTC

[jira] [Created] (LUCENENET-609) Lucene.Net.Support.IO.FileSupport::fileCanonPathCache is not thread safe

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)