lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
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
URL: https://github.com/apache/lucenenet/pull/222
 
 
   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
302
      at Lucene.Net.Store.NativeFSLockFactory.MakeLock(String lockName) in C:\BuildAgent\work\b1b63ca15b99dddb\src\Lucene.Net\Store\NativeFSLockFactory.cs:line
111
      at Lucene.Net.Index.IndexWriter..ctor(Directory d, IndexWriterConfig conf) in C:\BuildAgent\work\b1b63ca15b99dddb\src\Lucene.Net\Index\IndexWriter.cs:line
827
   ```
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message