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

TestContextQuery.testRandomContextQueryScoring failure

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3, 6.0
    • Component/s: modules/spellchecker
    • Labels:
      None
    • Lucene Fields:
      New

      Description

         [junit4] Started J0 PID(8355@localhost).
         [junit4] Suite: org.apache.lucene.search.suggest.document.TestContextQuery
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestContextQuery -Dtests.method=testRandomContextQueryScoring -Dtests.seed=F3A3A7E94AC9CB6D -Dtests.slow=true -Dtests.locale=es_ES -Dtests.timezone=Zulu -Dtests.asserts=true -Dtests.file.encoding=UTF-8
         [junit4] ERROR   0.74s | TestContextQuery.testRandomContextQueryScoring <<<
         [junit4]    > Throwable #1: java.lang.AssertionError: Expected: key:sugg_yafiszhkyq2 score:859398.0 context:evoyj6 Actual: key:sugg_mfbt11 score:841758.0 context:evoyj6
         [junit4]    > Expected: "sugg_yafiszhkyq2"
         [junit4]    >      got: "sugg_mfbt11"
         [junit4]    > 	at org.apache.lucene.search.suggest.document.TestSuggestField.assertSuggestions(TestSuggestField.java:608)
         [junit4]    > 	at org.apache.lucene.search.suggest.document.TestContextQuery.testRandomContextQueryScoring(TestContextQuery.java:528)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:745)Throwable #2: java.lang.RuntimeException: MockDirectoryWrapper: cannot close: there are still open files: {_0.cfs=1}
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:749)
         [junit4]    > 	at org.apache.lucene.search.suggest.document.TestContextQuery.after(TestContextQuery.java:56)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
         [junit4]    > Caused by: java.lang.RuntimeException: unclosed IndexInput: _0.cfs
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.addFileHandle(MockDirectoryWrapper.java:624)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:668)
         [junit4]    > 	at org.apache.lucene.codecs.lucene50.Lucene50CompoundReader.<init>(Lucene50CompoundReader.java:71)
         [junit4]    > 	at org.apache.lucene.codecs.lucene50.Lucene50CompoundFormat.getCompoundReader(Lucene50CompoundFormat.java:71)
         [junit4]    > 	at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:93)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:65)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:132)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:184)
         [junit4]    > 	at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:99)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:433)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:342)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:279)
         [junit4]    > 	at org.apache.lucene.search.suggest.document.TestContextQuery.testRandomContextQueryScoring(TestContextQuery.java:521)
         [junit4]    > 	... 28 more
         [junit4]   2> NOTE: test params are: codec=Asserting(Lucene50), sim=RandomSimilarityProvider(queryNorm=false,coord=crazy): {suggest_field=DFR GBZ(0.3)}, locale=es_ES, timezone=Zulu
         [junit4]   2> NOTE: Linux 3.13.0-46-generic amd64/Oracle Corporation 1.8.0_40 (64-bit)/cpus=8,threads=1,free=388652544,total=504889344
         [junit4]   2> NOTE: All tests run in this JVM: [TestContextQuery]
         [junit4] Completed [1/1] in 1.14s, 1 test, 1 error <<< FAILURES!
      

        Attachments

          Activity

            People

            • Assignee:
              areek Areek Zillur
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: