lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <>
Subject Transient TestIndexWriterMergePolicy failure under IntelliJ
Date Tue, 07 Sep 2010 00:10:41 GMT
While testing changes for LUCENE-2611, I saw TestIndexWriterMergePolicy.testMaxBufferedDocsChange()
fail, but I wasn't able to replicate it either from IntelliJ or from Ant after adding the
seed to the newRandom() call in TestIndexWriterMergePolicy.setUp().

Environment: Sun JDK 1.6.0_13, Windows Vista, both 64-bit; IntelliJ IDEA 9.0.3.

When I saw this error, I was running two modules' tests in parallel from IntelliJ, and was
working on adding "tempDir" sysprop setting to test invocations from IntelliJ, so the probability
that there was something weird about my local setup is non-trivial.

Here is the output from IntelliJ:

NOTE: random codec of testcase 'testMaxBufferedDocsChange' was: MockSep
NOTE: random locale of testcase 'testMaxBufferedDocsChange' was: en_PH
NOTE: random timezone of testcase 'testMaxBufferedDocsChange' was: America/Indianapolis
NOTE: random seed of testcase 'testMaxBufferedDocsChange' was: 4118460220441676374

junit.framework.AssertionFailedError: maxMergeDocs=2147483647; numSegments=11; upperBound=10;
mergeFactor=10; segs=_65:c5950 _5t:c10->_32 _5u:c10->_32 _5v:c10->_32 _5w:c10->_32
_5x:c10->_32 _5y:c10->_32 _5z:c10->_32 _60:c10->_32 _61:c10->_32 _62:c1->_32
	at org.apache.lucene.index.TestIndexWriterMergePolicy.checkInvariants(
	at org.apache.lucene.index.TestIndexWriterMergePolicy.testMaxBufferedDocsChange(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at org.apache.lucene.util.LuceneTestCase.runBare(
	at org.junit.runners.Suite.runChild(
	at org.junit.runners.Suite.runChild(
	at org.junit.runners.ParentRunner$
	at org.junit.runners.ParentRunner$1.schedule(
	at org.junit.runners.ParentRunner.runChildren(
	at org.junit.runners.ParentRunner.access$000(
	at org.junit.runners.ParentRunner$2.evaluate(
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
	at com.intellij.rt.execution.junit.JUnitStarter.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at com.intellij.rt.execution.application.AppMain.main(


View raw message