Lucene - Core
  1. Lucene - Core
  2. LUCENE-3898

possible SynonymFilter bug: hudson fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Activity

      Robert Muir created issue -
      Hide
      Robert Muir added a comment -

      Since this test just wraps SynonymFilter around MockTokenizer, i suspect the bug is in Synonyms.

          [junit] Testsuite: org.apache.lucene.analysis.synonym.TestSynonymMapFilter
          [junit] Testcase: testRandom2(org.apache.lucene.analysis.synonym.TestSynonymMapFilter):	Caused an ERROR
          [junit] Uncaught exception by thread: Thread[Thread-1042,5,]
          [junit] org.apache.lucene.util.UncaughtExceptionsRule$UncaughtExceptionsInBackgroundThread: Uncaught exception by thread: Thread[Thread-1042,5,]
          [junit] 	at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:60)
          [junit] 	at org.apache.lucene.util.LuceneTestCase$RememberThreadRule$1.evaluate(LuceneTestCase.java:618)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:18)
          [junit] 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
          [junit] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
          [junit] 	at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:164)
          [junit] 	at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:57)
          [junit] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
          [junit] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
          [junit] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
          [junit] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
          [junit] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
          [junit] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
          [junit] 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
          [junit] 	at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:51)
          [junit] 	at org.apache.lucene.util.StoreClassNameRule$1.evaluate(StoreClassNameRule.java:21)
          [junit] 	at org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:22)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:18)
          [junit] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
          [junit] 	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
          [junit] Caused by: org.junit.ComparisonFailure: term 0 expected:<[script]> but was:<[?????????????]>
          [junit] 	at org.junit.Assert.assertEquals(Assert.java:125)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:144)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:516)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.access$000(BaseTokenStreamTestCase.java:49)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:329)
          [junit] 
          [junit] 
          [junit] Tests run: 15, Failures: 0, Errors: 1, Time elapsed: 21.001 sec
          [junit] 
          [junit] ------------- Standard Error -----------------
          [junit] 
          [junit] ===>
          [junit] Uncaught exception by thread: Thread[Thread-1042,5,main]
          [junit] org.junit.ComparisonFailure: term 0 expected:<[script]> but was:<[?????????????]>
          [junit] 	at org.junit.Assert.assertEquals(Assert.java:125)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:144)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:516)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase.access$000(BaseTokenStreamTestCase.java:49)
          [junit] 	at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:329)
          [junit] <===
      
      Show
      Robert Muir added a comment - Since this test just wraps SynonymFilter around MockTokenizer, i suspect the bug is in Synonyms. [junit] Testsuite: org.apache.lucene.analysis.synonym.TestSynonymMapFilter [junit] Testcase: testRandom2(org.apache.lucene.analysis.synonym.TestSynonymMapFilter): Caused an ERROR [junit] Uncaught exception by thread: Thread[Thread-1042,5,] [junit] org.apache.lucene.util.UncaughtExceptionsRule$UncaughtExceptionsInBackgroundThread: Uncaught exception by thread: Thread[Thread-1042,5,] [junit] at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:60) [junit] at org.apache.lucene.util.LuceneTestCase$RememberThreadRule$1.evaluate(LuceneTestCase.java:618) [junit] at org.junit.rules.RunRules.evaluate(RunRules.java:18) [junit] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) [junit] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:164) [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:57) [junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) [junit] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) [junit] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) [junit] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) [junit] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) [junit] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) [junit] at org.apache.lucene.util.UncaughtExceptionsRule$1.evaluate(UncaughtExceptionsRule.java:51) [junit] at org.apache.lucene.util.StoreClassNameRule$1.evaluate(StoreClassNameRule.java:21) [junit] at org.apache.lucene.util.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:22) [junit] at org.junit.rules.RunRules.evaluate(RunRules.java:18) [junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:300) [junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743) [junit] Caused by: org.junit.ComparisonFailure: term 0 expected:<[script]> but was:<[?????????????]> [junit] at org.junit.Assert.assertEquals(Assert.java:125) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:144) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:516) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.access$000(BaseTokenStreamTestCase.java:49) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:329) [junit] [junit] [junit] Tests run: 15, Failures: 0, Errors: 1, Time elapsed: 21.001 sec [junit] [junit] ------------- Standard Error ----------------- [junit] [junit] ===> [junit] Uncaught exception by thread: Thread[Thread-1042,5,main] [junit] org.junit.ComparisonFailure: term 0 expected:<[script]> but was:<[?????????????]> [junit] at org.junit.Assert.assertEquals(Assert.java:125) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.assertTokenStreamContents(BaseTokenStreamTestCase.java:144) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.checkRandomData(BaseTokenStreamTestCase.java:516) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase.access$000(BaseTokenStreamTestCase.java:49) [junit] at org.apache.lucene.analysis.BaseTokenStreamTestCase$AnalysisThread.run(BaseTokenStreamTestCase.java:329) [junit] <===
      Michael McCandless made changes -
      Field Original Value New Value
      Assignee Michael McCandless [ mikemccand ]
      Hide
      Michael McCandless added a comment -

      I can't provoke this failure yet... (just beasting the test).

      Show
      Michael McCandless added a comment - I can't provoke this failure yet... (just beasting the test).
      Hide
      Robert Muir added a comment -

      It definitely requires some beasting, but I found a seed:

      ant test -Dtestcase=TestSynonymMapFilter -Dtestmethod=testRandom2 -Dtests.seed=4960bdc955a84bcf:-3fa62ebdf7c327b2:-3a600dcf6292a436 -Dtests.multiplier=5 -Dtests.nightly=true -Dargs="-Dfile.encoding=UTF-8"
      
      Show
      Robert Muir added a comment - It definitely requires some beasting, but I found a seed: ant test -Dtestcase=TestSynonymMapFilter -Dtestmethod=testRandom2 -Dtests.seed=4960bdc955a84bcf:-3fa62ebdf7c327b2:-3a600dcf6292a436 -Dtests.multiplier=5 -Dtests.nightly=true -Dargs="-Dfile.encoding=UTF-8"
      Hide
      Michael McCandless added a comment -

      I think this is fixed...

      Show
      Michael McCandless added a comment - I think this is fixed...
      Michael McCandless made changes -
      Status Open [ 1 ] Resolved [ 5 ]
      Fix Version/s 3.6 [ 12319070 ]
      Fix Version/s 4.0 [ 12314025 ]
      Resolution Fixed [ 1 ]
      Uwe Schindler made changes -
      Status Resolved [ 5 ] Closed [ 6 ]
      Transition Time In Source Status Execution Times Last Executer Last Execution Date
      Open Open Resolved Resolved
      11h 41m 1 Michael McCandless 21/Mar/12 15:26
      Resolved Resolved Closed Closed
      414d 19h 17m 1 Uwe Schindler 10/May/13 11:43

        People

        • Assignee:
          Michael McCandless
          Reporter:
          Robert Muir
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development