lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] sourcerist opened a new pull request #222: fix locking/disposal bug
Date Fri, 08 Feb 2019 23:07:48 GMT
sourcerist opened a new pull request #222: fix locking/disposal bug
   This fixes a bug where disposing of a NativeFSLockFactory appears to attempt to remove
a lock without first checking that it exists in the _locks collection.  I also cleaned up
some lock usage (locking on the object you intend to access is not considered best practice).
   Stack trace of the exception:
   System.IndexOutOfRangeException: Index was outside the bounds of the array.
      at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
      at Lucene.Net.Support.IO.FileSupport.GetCanonicalPath(FileSystemInfo path) in C:\BuildAgent\work\b1b63ca15b99dddb\src\Lucene.Net\Support\IO\FileSupport.cs:line
      at Lucene.Net.Store.NativeFSLockFactory.MakeLock(String lockName) in C:\BuildAgent\work\b1b63ca15b99dddb\src\Lucene.Net\Store\NativeFSLockFactory.cs:line
      at Lucene.Net.Index.IndexWriter..ctor(Directory d, IndexWriterConfig conf) in C:\BuildAgent\work\b1b63ca15b99dddb\src\Lucene.Net\Index\IndexWriter.cs:line

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message