I think maybe LuceneTestCase.newSearcher is turning on concurrency (setting
the executor randomly).  Since this test explicitly passes a "no
concurrency" collector manager I think we should switch to "new
IndexSearcher(...)".

Mike

On Tue, Nov 28, 2023 at 7:29 PM Michael McCandless <
luc...@mikemccandless.com> wrote:

> This reproduces for me.
>
> Maybe related to LUCENE-10002 / #240?
>
> Mike
>
> On Tue, Nov 28, 2023 at 1:58 AM Apache Jenkins Server <
> jenk...@builds.apache.org> wrote:
>
>> Build:
>> https://ci-builds.apache.org/job/Lucene/job/Lucene-NightlyTests-main/1199/
>>
>> 1 tests failed.
>> FAILED:  org.apache.lucene.search.TestTopFieldCollector.testSort
>>
>> Error Message:
>> java.lang.IllegalStateException: This TopFieldCollectorManager was
>> created without concurrency (supportsConcurrency=false), but multiple
>> collectors are being created
>>
>> Stack Trace:
>> java.lang.IllegalStateException: This TopFieldCollectorManager was
>> created without concurrency (supportsConcurrency=false), but multiple
>> collectors are being created
>>         at
>> __randomizedtesting.SeedInfo.seed([4B0B913D92123C6D:1AEEB914595F267D]:0)
>>         at
>> org.apache.lucene.search.TopFieldCollectorManager.newCollector(TopFieldCollectorManager.java:142)
>>         at
>> org.apache.lucene.search.TopFieldCollectorManager.newCollector(TopFieldCollectorManager.java:31)
>>         at
>> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:623)
>>         at
>> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:607)
>>         at
>> org.apache.lucene.search.TestTopFieldCollector.testSort(TestTopFieldCollector.java:124)
>>         at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>         at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>         at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1758)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:946)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:982)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:996)
>>         at
>> org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
>>         at
>> org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
>>         at
>> org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
>>         at
>> org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
>>         at
>> org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
>>         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>         at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
>>         at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:843)
>>         at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:490)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:955)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:840)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:891)
>>         at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:902)
>>         at
>> org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
>>         at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at
>> org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
>>         at
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
>>         at
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
>>         at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at
>> org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
>>         at
>> org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
>>         at
>> org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
>>         at
>> org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
>>         at
>> org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
>>         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>         at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:390)
>>         at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:850)
>>         at java.base/java.lang.Thread.run(Thread.java:833)
>>
>>
>>
>>
>> Build Log:
>> [...truncated 849 lines...]
>> ERROR: The following test(s) have failed:
>>   - org.apache.lucene.search.TestTopFieldCollector.testSort (:lucene:core)
>>     Test output:
>> /home/jenkins/jenkins-slave/workspace/Lucene/Lucene-NightlyTests-main/checkout/lucene/core/build/test-results/test/outputs/OUTPUT-org.apache.lucene.search.TestTopFieldCollector.txt
>>     Reproduce with: gradlew :lucene:core:test --tests
>> "org.apache.lucene.search.TestTopFieldCollector.testSort" -Ptests.jvms=4
>> -Ptests.jvmargs= -Ptests.seed=4B0B913D92123C6D -Ptests.multiplier=2
>> -Ptests.nightly=true -Ptests.gui=true -Ptests.file.encoding=ISO-8859-1
>> -Ptests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene/Lucene-NightlyTests-main/test-data/enwiki.random.lines.txt
>> -Ptests.vectorsize=256
>>
>>
>> Deprecated Gradle features were used in this build, making it
>> incompatible with Gradle 9.0.
>>
>> You can use '--warning-mode all' to show the individual deprecation
>> warnings and determine if they come from your own scripts or plugins.
>>
>> For more on this, please refer to
>> https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings
>> in the Gradle documentation.
>>
>> BUILD SUCCESSFUL in 2h 50m 53s
>> 246 actionable tasks: 182 executed, 64 up-to-date
>>
>> Publishing build scan...
>> https://ge.apache.org/s/goznjshgqo746
>>
>> Build step 'Invoke Gradle script' changed build result to SUCCESS
>> Archiving artifacts
>> hudson.FilePath$ValidateAntFileMask$1Cancel
>>         at
>> hudson.FilePath$ValidateAntFileMask$1.isCaseSensitive(FilePath.java:3300)
>>         at
>> org.apache.tools.ant.DirectoryScanner.couldHoldIncluded(DirectoryScanner.java:1413)
>>         at
>> org.apache.tools.ant.DirectoryScanner.lambda$couldHoldIncluded$4(DirectoryScanner.java:1400)
>>         at
>> java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
>>         at
>> java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
>>         at
>> java.base/java.util.stream.Streams$ConcatSpliterator.tryAdvance(Streams.java:720)
>>         at
>> java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
>>         at
>> java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
>>         at
>> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
>>         at
>> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
>>         at
>> java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
>>         at
>> java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
>>         at
>> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>>         at
>> java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:528)
>>         at
>> org.apache.tools.ant.DirectoryScanner.couldHoldIncluded(DirectoryScanner.java:1400)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1266)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1267)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1267)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1267)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1267)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1267)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1194)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1156)
>>         at
>> org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryScanner.java:954)
>>         at
>> org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:912)
>>         at
>> hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3313)
>> Caused: hudson.FilePath$FileMaskNoMatchesFoundException: no matches found
>> within 10000
>>         at
>> hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3318)
>>         at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:3196)
>>         at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:3174)
>>         at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3578)
>> Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to
>> lucene-solr-2
>>                 at
>> hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
>>                 at
>> hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
>>                 at hudson.remoting.Channel.call(Channel.java:1000)
>>                 at hudson.FilePath.act(FilePath.java:1192)
>>                 at hudson.FilePath.act(FilePath.java:1181)
>>                 at hudson.FilePath.validateAntFileMask(FilePath.java:3171)
>>                 at
>> hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:271)
>>                 at
>> hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
>>                 at
>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>                 at
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
>>                 at
>> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
>>                 at hudson.model.Build$BuildExecution.post2(Build.java:179)
>>                 at
>> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
>>                 at hudson.model.Run.execute(Run.java:1925)
>>                 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
>>                 at
>> hudson.model.ResourceController.execute(ResourceController.java:101)
>>                 at hudson.model.Executor.run(Executor.java:442)
>> Caused: hudson.FilePath$TunneledInterruptedException
>>         at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3580)
>>         at hudson.remoting.UserRequest.perform(UserRequest.java:211)
>>         at hudson.remoting.UserRequest.perform(UserRequest.java:54)
>>         at hudson.remoting.Request$2.run(Request.java:377)
>>         at
>> hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
>>         at
>> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>         at
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>         at
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>         at java.base/java.lang.Thread.run(Thread.java:829)
>> Caused: java.lang.InterruptedException:
>> hudson.FilePath$FileMaskNoMatchesFoundException: no matches found within
>> 10000
>>         at hudson.FilePath.act(FilePath.java:1194)
>>         at hudson.FilePath.act(FilePath.java:1181)
>>         at hudson.FilePath.validateAntFileMask(FilePath.java:3171)
>>         at
>> hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:271)
>>         at
>> hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
>>         at
>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>         at
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
>>         at
>> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
>>         at hudson.model.Build$BuildExecution.post2(Build.java:179)
>>         at
>> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
>>         at hudson.model.Run.execute(Run.java:1925)
>>         at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
>>         at
>> hudson.model.ResourceController.execute(ResourceController.java:101)
>>         at hudson.model.Executor.run(Executor.java:442)
>> No artifacts found that match the file pattern
>> "**/*.events,heapdumps/**,**/hs_err_pid*". Configuration error?
>> Recording test results
>> [Checks API] No suitable checks publisher found.
>> Build step 'Publish JUnit test result report' changed build result to
>> UNSTABLE
>> Email was triggered for: Unstable (Test Failures)
>> Sending email for trigger: Unstable (Test Failures)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: builds-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: builds-h...@lucene.apache.org
>
>

Reply via email to