lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3111) TestFSTs.testRandomWords failure
Date Mon, 23 May 2011 20:13:47 GMT


Robert Muir commented on LUCENE-3111:

@rmuir: Why was this committed to the 3_X branch, and not only to the trunk, as r 1104527?

In general, when it comes to improving tests I try to backport all improvements.

Also, sorry for my ignorance, but why is it needed?

Its a bug to override setup()/teardown() and not call super.setup()/super.tearDown(). You
can detect this bug with findbugs, but its far better for the tests to just check this.

Otherwise, the test-framework (LuceneTestCase) won't work correctly, such as in this case
where you don't have a reproducible random seed.

I'm sorry if it breaks your tests, you just need to make sure your setup() calls super.setup()
and your tearDown() calls super.tearDown()

> TestFSTs.testRandomWords failure
> --------------------------------
>                 Key: LUCENE-3111
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: selckin
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 4.0
>         Attachments: LUCENE-3111.patch
> Was running some while(1) tests on the docvalues branch (r1103705) and the following
test failed:
> {code}
>     [junit] Testsuite: org.apache.lucene.util.automaton.fst.TestFSTs
>     [junit] Testcase: testRandomWords(org.apache.lucene.util.automaton.fst.TestFSTs):
>     [junit] expected:<771> but was:<TwoLongs:771,771>
>     [junit] junit.framework.AssertionFailedError: expected:<771> but was:<TwoLongs:771,771>
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs$FSTTester.verifyUnPruned(
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs$FSTTester.doTest(
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs$FSTTester.doTest(
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs.doTest(
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs.testRandomWords(
>     [junit] 	at org.apache.lucene.util.automaton.fst.TestFSTs.testRandomWords(
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
>     [junit] 
>     [junit] 
>     [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 7.628 sec
>     [junit] 
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: Ignoring nightly-only test method 'testBigSet'
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestFSTs -Dtestmethod=testRandomWords
>     [junit] NOTE: test params are: codec=PreFlex, locale=ar, timezone=America/Blanc-Sablon
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestToken, TestCodecs, TestIndexReaderReopen, TestIndexWriterMerging, TestNoDeletionPolicy,
TestParallelReaderEmptyIndex, TestParallelTermEnum, TestPerSegmentDeletes, TestSegmentReader,
TestSegmentTermDocs, TestStressAdvance, TestTermVectorsReader, TestSurrogates, TestMultiFieldQueryParser,
TestAutomatonQuery, TestBooleanScorer, TestFuzzyQuery, TestMultiTermConstantScore, TestNumericRangeQuery64,
TestPositiveScoresOnlyCollector, TestPrefixFilter, TestQueryTermVector, TestScorerPerf, TestSloppyPhraseQuery,
TestSpansAdvanced, TestWindowsMMap, TestRamUsageEstimator, TestSmallFloat, TestUnicodeUtil,
>     [junit] NOTE: Linux 2.6.37-gentoo amd64/Sun Microsystems Inc. 1.6.0_25 (64-bit)/cpus=8,threads=1,free=137329960,total=208207872
>     [junit] ------------- ---------------- ---------------
>     [junit] TEST org.apache.lucene.util.automaton.fst.TestFSTs FAILED
> {code}
> I am not able to reproduce

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message