[
https://issues.apache.org/jira/browse/LUCENE-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera updated LUCENE-2721:
-------------------------------
Attachment: LUCENE-2721.patch
Simon, looks like we were working on it in parallel :).
The patch you added only takes care of that particular test case. This patch
ensures all test cases won't be hit by this randomness problem, by ensuring IWC
is not configured to flush by num docs or small RAM buffer size.
Patch is against 3x, I'll port to trunk after I commit.
> Random Failure TestSizeBoundedOptimize#testFirstSegmentTooLarge
> ---------------------------------------------------------------
>
> Key: LUCENE-2721
> URL: https://issues.apache.org/jira/browse/LUCENE-2721
> Project: Lucene - Java
> Issue Type: Test
> Components: Index
> Affects Versions: CSF branch, 4.0
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Attachments: LUCENE-2721.patch, LUCENE-2721.patch
>
>
> I am seeing this on trunk
> {noformat}
> [junit] Testsuite: org.apache.lucene.index.TestSizeBoundedOptimize
> [junit] Testcase:
> testFirstSegmentTooLarge(org.apache.lucene.index.TestSizeBoundedOptimize):
> FAILED
> [junit] expected:<2> but was:<1>
> [junit] junit.framework.AssertionFailedError: expected:<2> but was:<1>
> [junit] at
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:882)
> [junit] at
> org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:848)
> [junit] at
> org.apache.lucene.index.TestSizeBoundedOptimize.testFirstSegmentTooLarge(TestSizeBoundedOptimize.java:160)
> [junit]
> [junit]
> [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.658 sec
> [junit]
> [junit] ------------- Standard Output ---------------
> [junit] NOTE: reproduce with: ant test -Dtestcase=TestSizeBoundedOptimize
> -Dtestmethod=testFirstSegmentTooLarge
> -Dtests.seed=7354441978302993522:-457602792543755447 -Dtests.multiplier=3
> [junit] NOTE: test params are: codec=Standard, locale=sv_SE,
> timezone=Mexico/BajaNorte
> [junit] ------------- ---------------- ---------------
> [junit] ------------- Standard Error -----------------
> [junit] NOTE: all tests run in this JVM:
> [junit] [TestSizeBoundedOptimize]
> [junit] ------------- ---------------- ---------------
> [junit] Test org.apache.lucene.index.TestSizeBoundedOptimize FAILED
> {noformat}
> when running with this seed
> ant test -Dtestcase=TestSizeBoundedOptimize
> -Dtestmethod=testFirstSegmentTooLarge
> -Dtests.seed=7354441978302993522:-457602792543755447 -Dtests.multiplier=3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]