[ 
https://issues.apache.org/jira/browse/LUCENE-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924196#action_12924196
 ] 

Shai Erera commented on LUCENE-2721:
------------------------------------

What do you mean? If maxBufDocs is set low enough (as in this case), the tests 
that rely on the segments size as committed by them would fail. In fact, all 
tests care - if I rely on a segment size to be 3, and set maxMergeDocs to 2, 
but because of randomness there were 2 segments of size 2 + 1, then the test 
would fail.

> 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]

Reply via email to