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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Lucene.Net 4.8.0
    • Lucene.Net Core
    • Windows (any version)

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nightowl888 Shad Storhaug
            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

              Slack

                Issue deployment