lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shad Storhaug (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (LUCENENET-609) Lucene.Net.Support.IO.FileSupport::fileCanonPathCache is not thread safe
Date Wed, 10 Jul 2019 12:41:01 GMT

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

Shad Storhaug reassigned LUCENENET-609:
---------------------------------------

    Assignee: Shad Storhaug

> 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
>   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)

Mime
View raw message