You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The failure is due to the fact that the Lucene.Net.Store.SharingNativeFSLock keeps a tracking FileStream open on the file, but does not specify FileAccess.Read on that stream. A second stream is opened in IsLocked() to determine whether a lock is held, in this second case FileAccess.Read is required to provoke an exception.
Not allowing read access on the tracking stream makes RAMDirectory fail when it attempts to copy all of the files in the source directory, which is what is causing each of the above tests to fail.
The text was updated successfully, but these errors were encountered:
The following tests are occasionally failing on macOS and Linux (see #269):
Lucene.Net.Index.TestTermVectorsWriter::TestTermVectorCorruption()
Lucene.Net.Index.TestIndexWriterReader::TestDuringAddIndexes()
The failure is due to the fact that the
Lucene.Net.Store.SharingNativeFSLock
keeps a trackingFileStream
open on the file, but does not specifyFileAccess.Read
on that stream. A second stream is opened inIsLocked()
to determine whether a lock is held, in this second caseFileAccess.Read
is required to provoke an exception.Not allowing read access on the tracking stream makes
RAMDirectory
fail when it attempts to copy all of the files in the source directory, which is what is causing each of the above tests to fail.The text was updated successfully, but these errors were encountered: