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

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

     [ https://issues.apache.org/jira/browse/LUCENENET-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shad Storhaug resolved LUCENENET-609.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: Lucene.Net 4.8.0

I have merged this PR into master and it will be in the next beta

> 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
>            Assignee: Shad Storhaug
>            Priority: Minor
>              Labels: easyfix
>             Fix For: Lucene.Net 4.8.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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)