Took a glance at this failure and it looks like the test is creating a TopScoreDocCollector with a "numHits" of 0 (with this random seed). Way back in LUCENE-2785, TSDC started requiring > 0 (pushing users to use TotalHitCountCollector instead of passing 0).
Looks like this run just got really unlucky with the random value it picked up for numHits, but I'll go ahead and tweak the test to make sure numHits is at least 1. Cheers, -Greg On Sat, Nov 20, 2021 at 4:44 PM Apache Jenkins Server <[email protected]> wrote: > > Build: https://ci-builds.apache.org/job/Lucene/job/Lucene-Check-main/3872/ > > 1 tests failed. > FAILED: > org.apache.lucene.sandbox.search.TestCombinedFieldQuery.testScoringWithMultipleFieldTermsMatch > > Error Message: > java.lang.IllegalArgumentException: numHits must be > 0; please use > TotalHitCountCollector if you just need the total hit count > > Stack Trace: > java.lang.IllegalArgumentException: numHits must be > 0; please use > TotalHitCountCollector if you just need the total hit count > at > __randomizedtesting.SeedInfo.seed([25A4846FCF0B6C50:2E6067174DDBB654]:0) > at > org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:237) > at > org.apache.lucene.search.TopScoreDocCollector.create(TopScoreDocCollector.java:226) > at > org.apache.lucene.sandbox.search.TestCombinedFieldQuery.testScoringWithMultipleFieldTermsMatch(TestCombinedFieldQuery.java:238) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1754) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:942) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:978) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:992) > at > org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:44) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) > at > org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) > at > org.apache.lucene.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:370) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:819) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:470) > at > com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:951) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:836) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:887) > at > com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:898) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > org.apache.lucene.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.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53) > at > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60) > at > org.apache.lucene.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:370) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl.lambda$forkTimeoutingTask$0(ThreadLeakControl.java:826) > at java.base/java.lang.Thread.run(Thread.java:834) > > > > > Build Log: > [...truncated 1304 lines...] > ERROR: The following test(s) have failed: > - > org.apache.lucene.sandbox.search.TestCombinedFieldQuery.testScoringWithMultipleFieldTermsMatch > (:lucene:sandbox) > Test output: > /home/jenkins/jenkins-slave/workspace/Lucene/Lucene-Check-main/lucene/sandbox/build/test-results/test/outputs/OUTPUT-org.apache.lucene.sandbox.search.TestCombinedFieldQuery.txt > Reproduce with: gradlew :lucene:sandbox:test --tests > "org.apache.lucene.sandbox.search.TestCombinedFieldQuery.testScoringWithMultipleFieldTermsMatch" > -Ptests.jvms=4 -Ptests.haltonfailure=false > -Ptests.jvmargs=-XX:TieredStopAtLevel=1 -Ptests.seed=25A4846FCF0B6C50 > -Ptests.multiplier=2 -Ptests.badapples=false -Ptests.file.encoding=ISO-8859-1 > > > Deprecated Gradle features were used in this build, making it incompatible > with Gradle 8.0. > > You can use '--warning-mode all' to show the individual deprecation warnings > and determine if they come from your own scripts or plugins. > > See > https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings > > BUILD SUCCESSFUL in 17m 30s > 727 actionable tasks: 727 executed > Build step 'Invoke Gradle script' changed build result to SUCCESS > Archiving artifacts > java.lang.InterruptedException: no matches found within 10000 > at hudson.FilePath$ValidateAntFileMask.hasMatch(FilePath.java:3069) > at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2948) > at hudson.FilePath$ValidateAntFileMask.invoke(FilePath.java:2929) > at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3317) > Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to > lucene-solr-1 > at > hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800) > at > hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) > at hudson.remoting.Channel.call(Channel.java:1001) > at hudson.FilePath.act(FilePath.java:1159) > at hudson.FilePath.act(FilePath.java:1148) > at hudson.FilePath.validateAntFileMask(FilePath.java:2927) > at > hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270) > 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:803) > at > hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752) > at hudson.model.Build$BuildExecution.post2(Build.java:177) > at > hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697) > at hudson.model.Run.execute(Run.java:1931) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > at > hudson.model.ResourceController.execute(ResourceController.java:97) > at hudson.model.Executor.run(Executor.java:429) > Caused: hudson.FilePath$TunneledInterruptedException > at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3319) > at hudson.remoting.UserRequest.perform(UserRequest.java:211) > at hudson.remoting.UserRequest.perform(UserRequest.java:54) > at hudson.remoting.Request$2.run(Request.java:376) > at > hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > Caused: java.lang.InterruptedException: java.lang.InterruptedException: no > matches found within 10000 > at hudson.FilePath.act(FilePath.java:1161) > at hudson.FilePath.act(FilePath.java:1148) > at hudson.FilePath.validateAntFileMask(FilePath.java:2927) > at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:270) > 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:803) > at > hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752) > at hudson.model.Build$BuildExecution.post2(Build.java:177) > at > hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697) > at hudson.model.Run.execute(Run.java:1931) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > at hudson.model.ResourceController.execute(ResourceController.java:97) > at hudson.model.Executor.run(Executor.java:429) > 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: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
