Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8030

TestCorePlusExtensionsParser failure: AssertingSimilarity.simScorer()'s SimScorer.computePayloadFactor() is angry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      From https://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/20789/ - reproduces for me, but only if I first remove -Dtests.method=testBoostingTermQueryXML from the cmdline:

      Checking out Revision 39376cd8b5ef03b3338c2e8fa31dce732749bcd7 (refs/remotes/origin/master)
      [...]
         [junit4] Suite: org.apache.lucene.queryparser.xml.TestCorePlusExtensionsParser
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestCorePlusExtensionsParser -Dtests.method=testBoostingTermQueryXML -Dtests.seed=DA0883869B26E8D9 -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=th-TH -Dtests.timezone=America/Indiana/Indianapolis -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
         [junit4] FAILURE 0.01s J0 | TestCorePlusExtensionsParser.testBoostingTermQueryXML <<<
         [junit4]    > Throwable #1: java.lang.AssertionError
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([DA0883869B26E8D9:F58B709A872CAF14]:0)
         [junit4]    > 	at org.apache.lucene.search.similarities.AssertingSimilarity$1.computePayloadFactor(AssertingSimilarity.java:120)
         [junit4]    > 	at org.apache.lucene.queries.payloads.PayloadScoreQuery$PayloadSpans.collectLeaf(PayloadScoreQuery.java:215)
         [junit4]    > 	at org.apache.lucene.search.spans.TermSpans.collect(TermSpans.java:121)
         [junit4]    > 	at org.apache.lucene.queries.payloads.PayloadScoreQuery$PayloadSpans.doCurrentSpans(PayloadScoreQuery.java:226)
         [junit4]    > 	at org.apache.lucene.search.spans.SpanScorer.setFreqCurrentDoc(SpanScorer.java:110)
         [junit4]    > 	at org.apache.lucene.search.spans.SpanScorer.ensureFreq(SpanScorer.java:126)
         [junit4]    > 	at org.apache.lucene.search.spans.SpanScorer.score(SpanScorer.java:133)
         [junit4]    > 	at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:70)
         [junit4]    > 	at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:70)
         [junit4]    > 	at org.apache.lucene.search.TopScoreDocCollector$SimpleTopScoreDocCollector$1.collect(TopScoreDocCollector.java:64)
         [junit4]    > 	at org.apache.lucene.search.AssertingLeafCollector.collect(AssertingLeafCollector.java:52)
         [junit4]    > 	at org.apache.lucene.search.AssertingCollector$1.collect(AssertingCollector.java:56)
         [junit4]    > 	at org.apache.lucene.search.AssertingLeafCollector.collect(AssertingLeafCollector.java:52)
         [junit4]    > 	at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:241)
         [junit4]    > 	at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:184)
         [junit4]    > 	at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
         [junit4]    > 	at org.apache.lucene.search.AssertingBulkScorer.score(AssertingBulkScorer.java:69)
         [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:658)
         [junit4]    > 	at org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:72)
         [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462)
         [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:581)
         [junit4]    > 	at org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:439)
         [junit4]    > 	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:450)
         [junit4]    > 	at org.apache.lucene.queryparser.xml.TestCoreParser.dumpResults(TestCoreParser.java:254)
         [junit4]    > 	at org.apache.lucene.queryparser.xml.TestCoreParser.testBoostingTermQueryXML(TestCoreParser.java:127)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> NOTE: test params are: codec=CheapBastard, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@fcaf28), locale=th-TH, timezone=America/Indiana/Indianapolis
         [junit4]   2> NOTE: Linux 4.10.0-37-generic i386/Oracle Corporation 1.8.0_144 (32-bit)/cpus=8,threads=1,free=47589984,total=67108864
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sarowe Steven Rowe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: