This was caused by ConcurrentMergeScheduler closing segments (hence
removing entries from the filter cache) while RamUsageTester was
browsing the graph to measure memory usage. I committed a fix that
makes sure to use SerialMergeScheduler instead.

On Thu, Dec 11, 2014 at 4:02 PM, Adrien Grand <jpou...@gmail.com> wrote:
> I'm looking.
>
> On Thu, Dec 11, 2014 at 3:55 PM, Apache Jenkins Server
> <jenk...@builds.apache.org> wrote:
>> Build: https://builds.apache.org/job/Lucene-Solr-NightlyTests-5.x/700/
>>
>> 1 tests failed.
>> FAILED:  
>> org.apache.lucene.search.TestLRUFilterCache.testRamBytesUsedAgreesWithRamUsageTester
>>
>> Error Message:
>> expected:<1128> but was:<848>
>>
>> Stack Trace:
>> java.lang.AssertionError: expected:<1128> but was:<848>
>>         at 
>> __randomizedtesting.SeedInfo.seed([464E11835ABC9F7B:588565C2018EF8AF]:0)
>>         at org.junit.Assert.fail(Assert.java:93)
>>         at org.junit.Assert.failNotEquals(Assert.java:647)
>>         at org.junit.Assert.assertEquals(Assert.java:128)
>>         at org.junit.Assert.assertEquals(Assert.java:472)
>>         at org.junit.Assert.assertEquals(Assert.java:456)
>>         at 
>> org.apache.lucene.search.TestLRUFilterCache.testRamBytesUsedAgreesWithRamUsageTester(TestLRUFilterCache.java:331)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1618)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:827)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:863)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:877)
>>         at 
>> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
>>         at 
>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>         at 
>> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
>>         at 
>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
>>         at 
>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at 
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
>>         at 
>> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
>>         at 
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:836)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:738)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:772)
>>         at 
>> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:783)
>>         at 
>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>>         at 
>> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at 
>> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
>>         at 
>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>>         at 
>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
>>         at 
>> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
>>         at 
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>>         at 
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
>>         at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>>
>> Build Log:
>> [...truncated 486 lines...]
>>    [junit4] Suite: org.apache.lucene.search.TestLRUFilterCache
>>    [junit4]   2> NOTE: download the large Jenkins line-docs file by running 
>> 'ant get-jenkins-line-docs' in the lucene directory.
>>    [junit4]   2> NOTE: reproduce with: ant test  
>> -Dtestcase=TestLRUFilterCache 
>> -Dtests.method=testRamBytesUsedAgreesWithRamUsageTester 
>> -Dtests.seed=464E11835ABC9F7B -Dtests.multiplier=2 -Dtests.nightly=true 
>> -Dtests.slow=true 
>> -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
>> -Dtests.locale=ar_YE -Dtests.timezone=Australia/Queensland 
>> -Dtests.asserts=true -Dtests.file.encoding=UTF-8
>>    [junit4] FAILURE 0.17s J1 | 
>> TestLRUFilterCache.testRamBytesUsedAgreesWithRamUsageTester <<<
>>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<1128> but 
>> was:<848>
>>    [junit4]    >        at 
>> __randomizedtesting.SeedInfo.seed([464E11835ABC9F7B:588565C2018EF8AF]:0)
>>    [junit4]    >        at 
>> org.apache.lucene.search.TestLRUFilterCache.testRamBytesUsedAgreesWithRamUsageTester(TestLRUFilterCache.java:331)
>>    [junit4]    >        at java.lang.Thread.run(Thread.java:745)
>>    [junit4]   2> NOTE: leaving temporary files on disk at: 
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/lucene/build/core/test/J1/temp/lucene.search.TestLRUFilterCache-464E11835ABC9F7B-001
>>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene50): 
>> {color=PostingsFormat(name=Direct)}, docValues:{}, 
>> sim=RandomSimilarityProvider(queryNorm=false,coord=yes): {}, locale=ar_YE, 
>> timezone=Australia/Queensland
>>    [junit4]   2> NOTE: FreeBSD 9.1-RELEASE-p3 amd64/Oracle Corporation 
>> 1.7.0_65 (64-bit)/cpus=16,threads=1,free=217233344,total=534249472
>>    [junit4]   2> NOTE: All tests run in this JVM: 
>> [TestIndexWriterMergePolicy, TestParallelReaderEmptyIndex, 
>> TestLucene50StoredFieldsFormatHighCompression, TestCharFilter, 
>> TestFrequencyTrackingRingBuffer, TestMultiTermQueryRewrites, 
>> TestIndexWriterUnicode, TestStressIndexing2, TestMultiMMap, 
>> TestPrefixInBooleanQuery, TestConsistentFieldNumbers, TestBinaryDocument, 
>> TestSentinelIntSet, TestCodecUtil, TestIndexWriterOutOfFileDescriptors, 
>> TestNewestSegment, TestSloppyMath, TestSimilarityProvider, 
>> TestAttributeSource, TestOmitNorms, TestPrefixFilter, 
>> TestNumericTokenStream, TestTermVectors, TestSparseFixedBitSet, 
>> TestTimeLimitingCollector, TestDocumentsWriterStallControl, 
>> TestMockCharFilter, TestLiveFieldValues, TestLRUFilterCache]
>>    [junit4] Completed on J1 in 12.60s, 7 tests, 1 failure <<< FAILURES!
>>
>> [...truncated 1121 lines...]
>> BUILD FAILED
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/build.xml:536:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/build.xml:477:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/build.xml:61:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/extra-targets.xml:39:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/lucene/build.xml:49:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/lucene/common-build.xml:1363:
>>  The following error occurred while executing this line:
>> /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-5.x/lucene/common-build.xml:970:
>>  There were test failures: 407 suites, 3067 tests, 1 failure, 35 ignored (25 
>> assumptions)
>>
>> Total time: 43 minutes 23 seconds
>> Build step 'Invoke Ant' marked build as failure
>> Archiving artifacts
>> Sending artifact delta relative to Lucene-Solr-NightlyTests-5.x #697
>> Archived 5 artifacts
>> Archive block size is 32768
>> Received 0 blocks and 3355646 bytes
>> Compression is 0.0%
>> Took 1 sec
>> Recording test results
>> Email was triggered for: Failure
>> Sending email for trigger: Failure
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>
>
> --
> Adrien



-- 
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to