You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2010/11/11 18:39:13 UTC
[jira] Updated: (LUCENE-2118) Intermittent failure in
TestIndexWriterMergePolicy.testMaxBufferedDocsChange
[ https://issues.apache.org/jira/browse/LUCENE-2118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-2118:
---------------------------------------
Attachment: LUCENE-2118.patch
OK I think (again!) I found the root cause here -- patch attached.
Basically the test and LogMergePolicy disagreed on the boundary case of when a segment falls into the minimum level. Just have to change < to <=.
> Intermittent failure in TestIndexWriterMergePolicy.testMaxBufferedDocsChange
> ----------------------------------------------------------------------------
>
> Key: LUCENE-2118
> URL: https://issues.apache.org/jira/browse/LUCENE-2118
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 3.1
> Reporter: Michael McCandless
> Priority: Minor
> Fix For: 3.1, 4.0
>
> Attachments: LUCENE-2118.patch
>
>
> Last night's build failed from it: http://hudson.zones.apache.org/hudson/job/Lucene-trunk/1019/changes
> Here's the exc:
> {code}
> [junit] Testcase: testMaxBufferedDocsChange(org.apache.lucene.index.TestIndexWriterMergePolicy): FAILED
> [junit] maxMergeDocs=2147483647; numSegments=11; upperBound=10; mergeFactor=10
> [junit] junit.framework.AssertionFailedError: maxMergeDocs=2147483647; numSegments=11; upperBound=10; mergeFactor=10
> [junit] at org.apache.lucene.index.TestIndexWriterMergePolicy.checkInvariants(TestIndexWriterMergePolicy.java:234)
> [junit] at org.apache.lucene.index.TestIndexWriterMergePolicy.testMaxBufferedDocsChange(TestIndexWriterMergePolicy.java:164)
> [junit] at org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:208)
> {code}
> Test doesn't fail if I run on opensolaris nor os X machines...
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org