Steve Rowe created SOLR-7992:
--------------------------------
Summary: QueryElevationComponentTest.testMarkExcludes() failure
Key: SOLR-7992
URL: https://issues.apache.org/jira/browse/SOLR-7992
Project: Solr
Issue Type: Bug
Reporter: Steve Rowe
My Jenkins found a failure
[http://jenkins.sarowe.net/job/Lucene-Solr-tests-5.x-Java8/1619/], reproduces
for me on OS X:
{noformat}
[junit4] 2> NOTE: reproduce with: ant test
-Dtestcase=QueryElevationComponentTest -Dtests.method=testMarkExcludes
-Dtests.seed=99E233B631387D8 -Dtests.slow=true
-Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt
-Dtests.locale=da -Dtests.timezone=America/North_Dakota/New_Salem
-Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
[junit4] ERROR 1.12s J2 | QueryElevationComponentTest.testMarkExcludes <<<
[junit4] > Throwable #1: java.lang.RuntimeException: Exception during
query
[junit4] > at
__randomizedtesting.SeedInfo.seed([99E233B631387D8:9CA79ACAFAFDA645]:0)
[junit4] > at
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:765)
[junit4] > at
org.apache.solr.handler.component.QueryElevationComponentTest.testMarkExcludes(QueryElevationComponentTest.java:463)
[junit4] > at java.lang.Thread.run(Thread.java:745)
[junit4] > Caused by: java.lang.RuntimeException: REQUEST FAILED:
xpath=//result/doc[2]/str[@name='id'][.='1']
[junit4] > xml response was: <?xml version="1.0" encoding="UTF-8"?>
[junit4] > <response>
[junit4] > <lst name="responseHeader">
[junit4] > <int name="status">0</int>
[junit4] > <int name="QTime">3</int>
[junit4] > <lst name="params">
[junit4] > <str name="q">XXXX XXXX</str>
[junit4] > <str name="qt">/elevate</str>
[junit4] > <str name="indent">true</str>
[junit4] > <str name="fl">id, score, [excluded]</str>
[junit4] > <str name="markExcludes">true</str>
[junit4] > <str name="wt">xml</str>
[junit4] > </lst>
[junit4] > </lst>
[junit4] > <result name="response" numFound="4" start="0"
maxScore="2.3953636">
[junit4] > <doc>
[junit4] > <str name="id">5</str>
[junit4] > <float name="score">0.0</float>
[junit4] > <bool name="[excluded]">false</bool></doc>
[junit4] > <doc>
[junit4] > <str name="id">4</str>
[junit4] > <float name="score">2.3953636</float>
[junit4] > <bool name="[excluded]">false</bool></doc>
[junit4] > <doc>
[junit4] > <str name="id">1</str>
[junit4] > <float name="score">2.3953636</float>
[junit4] > <bool name="[excluded]">false</bool></doc>
[junit4] > <doc>
[junit4] > <str name="id">6</str>
[junit4] > <float name="score">2.3953636</float>
[junit4] > <bool name="[excluded]">true</bool></doc>
[junit4] > </result>
[junit4] > </response>
[junit4] > request
was:q=XXXX+XXXX&qt=/elevate&indent=true&fl=id,+score,+[excluded]&markExcludes=true&wt=xml
[junit4] > at
org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:758)
[junit4] > ... 40 more
[...]
[junit4] 2> NOTE: leaving temporary files on disk at:
/var/lib/jenkins/jobs/Lucene-Solr-tests-5.x-Java8/workspace/solr/build/solr-core/test/J2/temp/solr.handler.component.QueryElevationComponentTest_99E233B631387D8-001
[junit4] 2> NOTE: test params are: codec=Asserting(Lucene53),
sim=RandomSimilarityProvider(queryNorm=false,coord=yes): {}, locale=da,
timezone=America/North_Dakota/New_Salem
[junit4] 2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation
1.8.0_45 (64-bit)/cpus=16,threads=1,free=352090400,total=531103744
[junit4] 2> NOTE: All tests run in this JVM: [TestFoldingMultitermQuery,
DirectUpdateHandlerTest, UUIDFieldTest, TestMinMaxOnMultiValuedField,
TestCustomSort, CSVRequestHandlerTest, DateMathParserTest, AddBlockUpdateTest,
StandardRequestHandlerTest, TestLMDirichletSimilarityFactory,
TestFileDictionaryLookup, HLLSerializationTest, TestGroupingSearch,
TestFieldTypeResource, TestElisionMultitermQuery,
DistributedQueryComponentOptimizationTest, AnalysisAfterCoreReloadTest,
TestScoreJoinQPScore, TestSolr4Spatial, TermVectorComponentTest,
TestCollectionAPI, TestJettySolrRunner, BasicDistributedZk2Test,
ShardRoutingTest, TermVectorComponentDistributedTest, SpellCheckComponentTest,
QueryElevationComponentTest]
[junit4] Completed [269/536] on J2 in 6.50s, 9 tests, 1 error <<< FAILURES!
{noformat}
Probably a test bug: looks like the test is depending on ordering of docs that
have the same score.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]