I hit a similar failure with the Replicator tests, or should I say "did not
hit the expected disk full".

I added a test to TestMDW.testDiskFull (fixing copyBytes to fail on
disk-full) but I put a comment on why you need to call flush().
Basically, you should call flush to ensure that bytes are not buffered.
Especially in a test which verifies 'disk full'.
As long as bytes are buffered, I think it's OK to not hit disk-full... they
never made it to the directory yet.

Shai


On Thu, May 16, 2013 at 12:12 PM, Adrien Grand <jpou...@gmail.com> wrote:

> I can reproduce this one. It seems to me that the problem is that
> MockDirectoryWrapper.getRecomputedSizeInBytes uses RAMFile.length
> although RAMFile.length is only set on flush or seek and is 0 until
> then? Should setFileLength be called after every write?
>
> On Thu, May 16, 2013 at 8:35 AM, Apache Jenkins Server
> <jenk...@builds.apache.org> wrote:
> > Build: https://builds.apache.org/job/Lucene-Solr-Tests-4.x-Java6/1623/
> >
> > 1 tests failed.
> > REGRESSION:
>  org.apache.lucene.index.TestIndexWriterOnDiskFull.testImmediateDiskFull
> >
> > Error Message:
> > did not hit disk full
> >
> > Stack Trace:
> > java.lang.AssertionError: did not hit disk full
> >         at
> __randomizedtesting.SeedInfo.seed([9159284DB5A0A12D:1FBA21C9A14FE9]:0)
> >         at org.junit.Assert.fail(Assert.java:93)
> >         at
> org.apache.lucene.index.TestIndexWriterOnDiskFull.testImmediateDiskFull(TestIndexWriterOnDiskFull.java:537)
> >         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:616)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787)
> >         at
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
> >         at
> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51)
> >         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:70)
> >         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:358)
> >         at
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782)
> >         at
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682)
> >         at
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693)
> >         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
> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43)
> >         at
> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
> >         at
> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
> >         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:358)
> >         at java.lang.Thread.run(Thread.java:679)
> >
> >
> >
> >
> > Build Log:
> > [...truncated 205 lines...]
> > [junit4:junit4] Suite: org.apache.lucene.index.TestIndexWriterOnDiskFull
> > [junit4:junit4]   2> NOTE: reproduce with: ant test
>  -Dtestcase=TestIndexWriterOnDiskFull -Dtests.method=testImmediateDiskFull
> -Dtests.seed=9159284DB5A0A12D -Dtests.multiplier=3 -Dtests.slow=true
> -Dtests.locale=ar -Dtests.timezone=America/Managua
> -Dtests.file.encoding=ISO8859-1
> > [junit4:junit4] FAILURE 0.51s J0 |
> TestIndexWriterOnDiskFull.testImmediateDiskFull <<<
> > [junit4:junit4]    > Throwable #1: java.lang.AssertionError: did not hit
> disk full
> > [junit4:junit4]    >    at
> __randomizedtesting.SeedInfo.seed([9159284DB5A0A12D:1FBA21C9A14FE9]:0)
> > [junit4:junit4]    >    at
> org.apache.lucene.index.TestIndexWriterOnDiskFull.testImmediateDiskFull(TestIndexWriterOnDiskFull.java:537)
> > [junit4:junit4]    >    at java.lang.Thread.run(Thread.java:679)
> > [junit4:junit4]   2> NOTE: test params are: codec=SimpleText,
> sim=RandomSimilarityProvider(queryNorm=true,coord=yes): {f=IB
> SPL-D3(800.0), id=DFR I(F)L1, content=DFR I(ne)2, field=DFR I(n)B1},
> locale=ar, timezone=America/Managua
> > [junit4:junit4]   2> NOTE: FreeBSD 9.0-RELEASE amd64/Sun Microsystems
> Inc. 1.6.0_32 (64-bit)/cpus=16,threads=1,free=401453760,total=514064384
> > [junit4:junit4]   2> NOTE: All tests run in this JVM:
> [TestIndexWriterOnDiskFull]
> > [junit4:junit4] Completed on J0 in 3.81s, 4 tests, 1 failure <<<
> FAILURES!
> >
> > [...truncated 1161 lines...]
> > BUILD FAILED
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/build.xml:383:
> The following error occurred while executing this line:
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/build.xml:363:
> The following error occurred while executing this line:
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/build.xml:39:
> The following error occurred while executing this line:
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/lucene/build.xml:49:
> The following error occurred while executing this line:
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/lucene/common-build.xml:1243:
> The following error occurred while executing this line:
> >
> /usr/home/hudson/hudson-slave/workspace/Lucene-Solr-Tests-4.x-Java6/lucene/common-build.xml:887:
> There were test failures: 364 suites, 2307 tests, 1 failure, 46 ignored (34
> assumptions)
> >
> > Total time: 8 minutes 32 seconds
> > Build step 'Invoke Ant' marked build as failure
> > Archiving artifacts
> > 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>

Reply via email to