paulirwin opened a new issue, #1090: URL: https://github.com/apache/lucenenet/issues/1090
### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug Got a random test failure on [this PR run](https://github.com/apache/lucenenet/actions/runs/12639130426/job/35216826838?pr=1089), ubuntu-latest, net9.0, x64. Re-running the test (with new random values) succeeded. ``` Error Message: System.ArgumentOutOfRangeException : The capacity may not be smaller than the file size. (Parameter 'capacity') (Test: Lucene.Net.Index.TestNeverDelete.TestIndexing) To reproduce this test result: Option 1: Apply the following assembly-level attributes: [assembly: Lucene.Net.Util.RandomSeed("0x778d6589462b9ad4")] [assembly: NUnit.Framework.SetCulture("es-BO")] Option 2: Use the following .runsettings file: <RunSettings> <TestRunParameters> <Parameter name="tests:seed" value="0x778d6589462b9ad4" /> <Parameter name="tests:culture" value="es-BO" /> </TestRunParameters> </RunSettings> Option 3: Create the following lucene.testsettings.json file somewhere between the test assembly and the root of your drive: { "tests": { "seed": "0x778d6589462b9ad4", "culture": "es-BO" } } Stack Trace: at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateCore(SafeFileHandle fileHandle, String mapName, HandleInheritability inheritability, MemoryMappedFileAccess access, MemoryMappedFileOptions options, Int64 capacity, Int64 fileSize) at Lucene.Net.Store.MMapDirectory.MMapIndexInput..ctor(MMapDirectory outerInstance, String resourceDescription, FileStream fc) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Store/MMapDirectory.cs:line 240 at Lucene.Net.Store.MMapDirectory.OpenInput(String name, IOContext context) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Store/MMapDirectory.cs:line 186 at Lucene.Net.Util.LuceneTestCase.SlowFileExists(Directory dir, String fileName) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs:line 2938 at Lucene.Net.Store.MockDirectoryWrapper.OpenInput(String name, IOContext context) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs:line 799 at Lucene.Net.Index.SegmentInfos.Read(Directory directory, String segmentFileName) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Index/SegmentInfos.cs:line 513 at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run(IndexCommit commit) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Index/SegmentInfos.cs:line 1158 at Lucene.Net.Index.SegmentInfos.Read(Directory directory) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Index/SegmentInfos.cs:line 625 at Lucene.Net.Index.StandardDirectoryReader.DoOpenNoWriter(IndexCommit commit) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Index/StandardDirectoryReader.cs:line 380 at Lucene.Net.Index.DirectoryReader.OpenIfChanged(DirectoryReader oldReader) in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net/Index/DirectoryReader.cs:line 174 at Lucene.Net.Index.TestNeverDelete.TestIndexing() in /home/runner/work/lucenenet/lucenenet/src/Lucene.Net.Tests/Index/TestNeverDelete.cs:line 88 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) ``` ### Expected Behavior The test passes ### Steps To Reproduce _No response_ ### Exceptions (if any) _No response_ ### Lucene.NET Version _No response_ ### .NET Version 9 ### Operating System ubuntu-latest ### Anything else? x64 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org