You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2017/08/11 20:38:00 UTC

[jira] [Commented] (SOLR-7992) QueryElevationComponentTest failures

    [ https://issues.apache.org/jira/browse/SOLR-7992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16124003#comment-16124003 ] 

Steve Rowe commented on SOLR-7992:
----------------------------------

Still getting this reproducing failure on Jenkins occasionally, e.g. from [https://builds.apache.org/job/Lucene-Solr-NightlyTests-master/1372]:

{noformat}
Checking out Revision fc7e2137431309b599419042eeb50b74c9b9e8e3 (refs/remotes/origin/master)
[...]
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=QueryElevationComponentTest -Dtests.method=testMarkExcludes -Dtests.seed=C56F3F141A4CDA52 -Dtests.multiplier=2 -Dtests.nightly=true -Dtests.slow=true -Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt -Dtests.locale=es-MX -Dtests.timezone=VST -Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.66s J0 | QueryElevationComponentTest.testMarkExcludes <<<
   [junit4]    > Throwable #1: java.lang.RuntimeException: Exception during query
   [junit4]    > 	at __randomizedtesting.SeedInfo.seed([C56F3F141A4CDA52:505686E583A2FBCF]:0)
   [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:886)
   [junit4]    > 	at org.apache.solr.handler.component.QueryElevationComponentTest.testMarkExcludes(QueryElevationComponentTest.java:466)
   [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
   [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">2</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="3.149114">
   [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">3.149114</float>
   [junit4]    >     <bool name="[excluded]">false</bool></doc>
   [junit4]    >   <doc>
   [junit4]    >     <str name="id">6</str>
   [junit4]    >     <float name="score">3.149114</float>
   [junit4]    >     <bool name="[excluded]">true</bool></doc>
   [junit4]    >   <doc>
   [junit4]    >     <str name="id">1</str>
   [junit4]    >     <float name="score">3.149114</float>
   [junit4]    >     <bool name="[excluded]">false</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:879)
[...]
   [junit4]   2> NOTE: test params are: codec=Lucene70, sim=RandomSimilarity(queryNorm=true): {}, locale=es-MX, timezone=VST
   [junit4]   2> NOTE: Linux 3.13.0-88-generic amd64/Oracle Corporation 1.8.0_144 (64-bit)/cpus=4,threads=1,free=183197240,total=436207616
{noformat}

> QueryElevationComponentTest failures
> ------------------------------------
>
>                 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.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org