Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-609

Lucene.Net.Support.IO.FileSupport::fileCanonPathCache is not thread safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lucene.Net 4.8.0
    • Component/s: Lucene.Net Core
    • Labels:
    • Environment:

      Windows (any version)

    • Flags:
      Patch

      Description

      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

      private static readonly IDictionary<string, string> fileCanonPathCache = new Dictionary<string, string>();
      

        Attachments

          Activity

            People

            • Assignee:
              nightowl888 Shad Storhaug
              Reporter:
              sthmathew Thomas Mathew
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified