NightOwl888 opened a new issue, #1050: URL: https://github.com/apache/lucenenet/issues/1050
### Is there an existing issue for this? - [X] I have searched the existing issues ### Describe the bug The `Lucene.Net.Search.TestMultiTermQueryRewrites.TestMaxClauseLimitations()` test fails under rare random conditions, but does not seem to repeat with the same random seed and culture. ### Expected Behavior The `Lucene.Net.Search.TestMultiTermQueryRewrites.TestMaxClauseLimitations()` test should always succeed. ### Steps To Reproduce Add the `[Repeat(100000)]` attribute to the test and it will fail frequently. ### Exceptions (if any) ``` TestMaxClauseLimitations Source: TestMultiTermQueryRewrites.cs line 295 Duration: 2.6 sec Message: Expected: CheckMaxClauseCount, Actual: Collect To reproduce this test result: Option 1: Apply the following assembly-level attributes: [assembly: Lucene.Net.Util.RandomSeed("0x933174838b8c2dfd")] [assembly: NUnit.Framework.SetCulture("fr-BL")] Option 2: Use the following .runsettings file: <RunSettings> <TestRunParameters> <Parameter name="tests:seed" value="0x933174838b8c2dfd" /> <Parameter name="tests:culture" value="fr-BL" /> </TestRunParameters> </RunSettings> Option 3: Create the following lucene.testsettings.json file somewhere between the test assembly and the root of your drive: { "tests": { "seed": "0x933174838b8c2dfd", "culture": "fr-BL" } } Stack Trace: TestMultiTermQueryRewrites.CheckMaxClauseLimitation(RewriteMethod method, String memberName) line 268 TestMultiTermQueryRewrites.TestMaxClauseLimitations() line 297 InvokeStub_TestMultiTermQueryRewrites.TestMaxClauseLimitations(Object, Object, IntPtr*) 1) at Lucene.Net.Search.TestMultiTermQueryRewrites.CheckMaxClauseLimitation(RewriteMethod method, String memberName) in F:\Projects\lucenenet\src\Lucene.Net.Tests\Search\TestMultiTermQueryRewrites.cs:line 262 TestMultiTermQueryRewrites.TestMaxClauseLimitations() line 297 InvokeStub_TestMultiTermQueryRewrites.TestMaxClauseLimitations(Object, Object, IntPtr*) ``` ### Lucene.NET Version 4.8.0-beta00017 ### .NET Version net8.0 ### Operating System Windows ### Anything else? It is known to fail on Windows x64 with net8.0. It may fail also fail under other configurations. This test should be compared with the behavior in Lucene 4.8.0. For some reason we are sometimes seeing the exception thrown from the `Collect()` method when we are expecting it to always be thrown from the `CheckMaxClauseCount()` method according to the way the test is written. Note also that the [assert message is commented out](https://github.com/apache/lucenenet/blob/6d62a5765e9134440fa491b2358bc520b3330347/src/Lucene.Net.Tests/Search/TestMultiTermQueryRewrites.cs#L265), and it should not be. -- 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