You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Steven A Rowe <sa...@syr.edu> on 2011/11/21 20:32:11 UTC

test failure under Windows: trunk benchmark module: LineDocSourceTest: could not remove temp dir

Under Windows 7, this test fails 100% of the time for me - no other Lucene/Solr test does this:

   cd modules/benchmark
   ant clean test -Dtestcase=LineDocSourceTest

Test output follows:

junit-sequential:
    [junit] Testsuite: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest
    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 1.472 sec
    [junit] 
    [junit] ------------- Standard Error -----------------
    [junit] java.io.IOException: could not delete C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp\one-line
    [junit]     at org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:85)
    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:447)
    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
    [junit]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    [junit]     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    [junit]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    [junit]     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
    [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
    [junit] path C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp allocated from
    [junit]     org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:65)
    [junit]     org.apache.lucene.benchmark.BenchmarkTestCase.beforeClassBenchmarkTestCase(BenchmarkTestCase.java:39)
    [junit] NOTE: reproduce with (hopefully): ant test -Dtestcase=LineDocSourceTest -Dtests.seed=-10f2bc7ed2006d82:0:-285ae758d1d45d49 -Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: test params are: codec=Lucene40: {docid=PostingsFormat(name=Memory), body=PostingsFormat(name=MockRandom), docdatenum=PostingsFormat(name=Lucene40WithOrds), docdate=PostingsFormat(name=MockRandom), doctitle=MockFixedIntBlock(blockSize=897), doctimesecnum=PostingsFormat(name=NestedPulsing), mySpecialField=PostingsFormat(name=Memory), docname=Pulsing40(freqCutoff=18 minBlockSize=98 maxBlockSize=231)}, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {}, locale=da, timezone=Atlantic/Reykjavik
    [junit] NOTE: all tests run in this JVM:
    [junit] [LineDocSourceTest]
    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=4,threads=1,free=124797192,total=128057344
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest:       Caused an ERROR
    [junit] java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
    [junit] java.lang.RuntimeException: java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:398)
    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:459)
    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
    [junit] 
    [junit] 
    [junit] Test org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest FAILED

Re: test failure under Windows: trunk benchmark module: LineDocSourceTest: could not remove temp dir

Posted by Shai Erera <se...@gmail.com>.
I posted a patch in LUCENE-3583 - simple fix. I will commit it shortly.

Shai

On Mon, Nov 21, 2011 at 9:40 PM, Robert Muir <rc...@gmail.com> wrote:

> Yes but thats not my fault: the test has been broken for a long
> time... I just exposed its brokenness.
>
> I'd rather it fail than see confusing corrupt index errors because it
> tries to open a test from a previous test run.
>
> On Mon, Nov 21, 2011 at 2:38 PM, Uwe Schindler <uw...@thetaphi.de> wrote:
> > Since you committed the benchmark working dir patch to 3.x this test also
> > fails here on the src jar of 3.5
> > --
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, 28213 Bremen
> > http://www.thetaphi.de
> >
> >
> >
> > Robert Muir <rc...@gmail.com> schrieb:
> >>
> >> Hi, there is an issue already open:
> >> https://issues.apache.org/jira/browse/LUCENE-3583
> >>
> >> I made a first stab at a patch, the problem is it doesn't fix it all
> >> the time, only some of the time.
> >>
> >> On Mon, Nov 21, 2011 at 2:32 PM, Steven A Rowe <sa...@syr.edu> wrote:
> >> > Under Windows 7, this test fails 100% of the time for me - no other
> >> > Lucene/Solr test does this:
> >> >
> >> >   cd modules/benchmark
> >> >   ant clean test -Dtestcase=LineDocSourceTest
> >> >
> >> > Test output follows:
> >> >
> >> > junit-sequential:
> >> >    [junit] Testsuite:
> >> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest
> >> >    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 1.472
> sec
> >> >    [junit]
> >> >    [junit] ------------- Standard Error
> >> -----------------
> >> >    [junit] java.io.IOException: could not delete
> >> >
> C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp\one-line
> >> >    [junit]     at
> >> > org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:85)
> >> >    [junit]     at
> >> >
> org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:447)
> >> >    [junit]     at
> >> >
> org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
> >> >    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > Method)
> >> >    [junit]     at
> >> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> >    [junit]     at
> >> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
> >> >    [junit]     at
> >>
> >>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> >> >    [junit]     at
> >> >
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> >> >    [junit]     at
> >> >
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> >> >    [junit]     at
> >> >
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
> >> >    [junit]     at
> >> > org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> >> >    [junit]     at
> >> > junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
> >> >    [junit]     at
> >> >
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
> >> >    [junit]     at
> >> >
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
> >> >    [junit]     at
> >> >
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
> >> &
> >>  gt;
> >>  [junit] path
> >>
> C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
> >> allocated from
> >> >    [junit]
> >> > org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:65)
> >> >    [junit]
> >> >
> org.apache.lucene.benchmark.BenchmarkTestCase.beforeClassBenchmarkTestCase(BenchmarkTestCase.java:39)
> >> >    [junit] NOTE: reproduce with (hopefully): ant test
> >> > -Dtestcase=LineDocSourceTest
> >> > -Dtests.seed=-10f2bc7ed2006d82:0:-285ae758d1d45d49
> >> > -Dargs="-Dfile.encoding=Cp1252"
> >> >    [junit] NOTE: test params are: codec=Lucene40:
> >> > {docid=PostingsFormat(name=Memory),
> body=PostingsFormat(name=MockRandom),
> >> > docdatenum=PostingsFormat(name=Lucene40WithOrds),
> >> > docdate=PostingsFormat(name=MockRandom),
> >> > doctitle=MockFixedIntBlock(blockSize=897),
> >> > doctimesecnum=PostingsFormat(name=NestedPulsing),
> >> > mySpecialField=PostingsFormat(name=Memory),
> docname=Pulsing40(freqCutoff=18
> >> > minBlockSize=98 maxBlockSize=231)},
> >> sim=RandomSimilarityProvider(queryNorm=false,coord=false): {},
> locale=da,
> >> timezone=Atlantic/Reykjavik
> >> >    [junit] NOTE: all tests run in this JVM:
> >> >    [junit] [LineDocSourceTest]
> >> >    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21
> >> > (64-bit)/cpus=4,threads=1,free=124797192,total=128057344
> >> >    [junit] ------------- ---------------- ---------------
> >> >    [junit] Testcase:
> >> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest:
> Caused an
> >> > ERROR
> >> >    [junit] java.lang.AssertionError: could not remove temp dir:
> >> >
> C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
> >> >    [junit] java.lang.RuntimeException: java.lang.AssertionError: could
> >> > not remove temp dir:
> >> >
> C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
> >> >    [junit]     at
> >> >
> org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:398)
> >> &
> >>  gt;
> >>  [junit]     at
> >>
> org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:459)
> >> >    [junit]     at
> >> >
> org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
> >> >    [junit]
> >> >    [junit]
> >> >    [junit] Test
> >> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest FAILED
> >> >
> >>
> >>
> >>
> >> --
> >> lucidimagination.com
> >>
> >> ________________________________
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>
> >
>
>
>
> --
> lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: test failure under Windows: trunk benchmark module: LineDocSourceTest: could not remove temp dir

Posted by Robert Muir <rc...@gmail.com>.
Yes but thats not my fault: the test has been broken for a long
time... I just exposed its brokenness.

I'd rather it fail than see confusing corrupt index errors because it
tries to open a test from a previous test run.

On Mon, Nov 21, 2011 at 2:38 PM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Since you committed the benchmark working dir patch to 3.x this test also
> fails here on the src jar of 3.5
> --
> Uwe Schindler
> H.-H.-Meier-Allee 63, 28213 Bremen
> http://www.thetaphi.de
>
>
>
> Robert Muir <rc...@gmail.com> schrieb:
>>
>> Hi, there is an issue already open:
>> https://issues.apache.org/jira/browse/LUCENE-3583
>>
>> I made a first stab at a patch, the problem is it doesn't fix it all
>> the time, only some of the time.
>>
>> On Mon, Nov 21, 2011 at 2:32 PM, Steven A Rowe <sa...@syr.edu> wrote:
>> > Under Windows 7, this test fails 100% of the time for me - no other
>> > Lucene/Solr test does this:
>> >
>> >   cd modules/benchmark
>> >   ant clean test -Dtestcase=LineDocSourceTest
>> >
>> > Test output follows:
>> >
>> > junit-sequential:
>> >    [junit] Testsuite:
>> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest
>> >    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 1.472 sec
>> >    [junit]
>> >    [junit] ------------- Standard Error
>> -----------------
>> >    [junit] java.io.IOException: could not delete
>> > C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp\one-line
>> >    [junit]     at
>> > org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:85)
>> >    [junit]     at
>> > org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:447)
>> >    [junit]     at
>> > org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>> >    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > Method)
>> >    [junit]     at
>> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >    [junit]     at
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>> >    [junit]     at
>>
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>> >    [junit]     at
>> > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>> >    [junit]     at
>> > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>> >    [junit]     at
>> > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
>> >    [junit]     at
>> > org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>> >    [junit]     at
>> > junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>> >    [junit]     at
>> > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
>> >    [junit]     at
>> > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
>> >    [junit]     at
>> > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
>> &
>>  gt;
>>  [junit] path
>> C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>> allocated from
>> >    [junit]
>> > org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:65)
>> >    [junit]
>> > org.apache.lucene.benchmark.BenchmarkTestCase.beforeClassBenchmarkTestCase(BenchmarkTestCase.java:39)
>> >    [junit] NOTE: reproduce with (hopefully): ant test
>> > -Dtestcase=LineDocSourceTest
>> > -Dtests.seed=-10f2bc7ed2006d82:0:-285ae758d1d45d49
>> > -Dargs="-Dfile.encoding=Cp1252"
>> >    [junit] NOTE: test params are: codec=Lucene40:
>> > {docid=PostingsFormat(name=Memory), body=PostingsFormat(name=MockRandom),
>> > docdatenum=PostingsFormat(name=Lucene40WithOrds),
>> > docdate=PostingsFormat(name=MockRandom),
>> > doctitle=MockFixedIntBlock(blockSize=897),
>> > doctimesecnum=PostingsFormat(name=NestedPulsing),
>> > mySpecialField=PostingsFormat(name=Memory), docname=Pulsing40(freqCutoff=18
>> > minBlockSize=98 maxBlockSize=231)},
>> sim=RandomSimilarityProvider(queryNorm=false,coord=false): {}, locale=da,
>> timezone=Atlantic/Reykjavik
>> >    [junit] NOTE: all tests run in this JVM:
>> >    [junit] [LineDocSourceTest]
>> >    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21
>> > (64-bit)/cpus=4,threads=1,free=124797192,total=128057344
>> >    [junit] ------------- ---------------- ---------------
>> >    [junit] Testcase:
>> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest:       Caused an
>> > ERROR
>> >    [junit] java.lang.AssertionError: could not remove temp dir:
>> > C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>> >    [junit] java.lang.RuntimeException: java.lang.AssertionError: could
>> > not remove temp dir:
>> > C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>> >    [junit]     at
>> > org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:398)
>> &
>>  gt;
>>  [junit]     at
>> org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:459)
>> >    [junit]     at
>> > org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>> >    [junit]
>> >    [junit]
>> >    [junit] Test
>> > org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest FAILED
>> >
>>
>>
>>
>> --
>> lucidimagination.com
>>
>> ________________________________
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>



-- 
lucidimagination.com

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


Re: test failure under Windows: trunk benchmark module: LineDocSourceTest: could not remove temp dir

Posted by Uwe Schindler <uw...@thetaphi.de>.
Since you committed the benchmark working dir patch to 3.x this test also fails here on the src jar of 3.5
--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.thetaphi.de



Robert Muir <rc...@gmail.com> schrieb:

Hi, there is an issue already open:
https://issues.apache.org/jira/browse/LUCENE-3583

I made a first stab at a patch, the problem is it doesn't fix it all
the time, only some of the time.

On Mon, Nov 21, 2011 at 2:32 PM, Steven A Rowe <sa...@syr.edu> wrote:
> Under Windows 7, this test fails 100% of the time for me - no other Lucene/Solr test does this:
>
>   cd modules/benchmark
>   ant clean test -Dtestcase=LineDocSourceTest
>
> Test output follows:
>
> junit-sequential:
>    [junit] Testsuite: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest
>    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 1.472 sec
>    [junit]
>    [junit] ------------- Standard Error -----------------
>    [junit] java.io.IOException: could not delete C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp\one-line
>    [junit]     at org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:85)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:447)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>    [junit]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    [junit]     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    [junit]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    [junit]     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
>    [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>    [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
>    [junit] path C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp allocated from
>    [junit]     org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:65)
>    [junit]     org.apache.lucene.benchmark.BenchmarkTestCase.beforeClassBenchmarkTestCase(BenchmarkTestCase.java:39)
>    [junit] NOTE: reproduce with (hopefully): ant test -Dtestcase=LineDocSourceTest -Dtests.seed=-10f2bc7ed2006d82:0:-285ae758d1d45d49 -Dargs="-Dfile.encoding=Cp1252"
>    [junit] NOTE: test params are: codec=Lucene40: {docid=PostingsFormat(name=Memory), body=PostingsFormat(name=MockRandom), docdatenum=PostingsFormat(name=Lucene40WithOrds), docdate=PostingsFormat(name=MockRandom), doctitle=MockFixedIntBlock(blockSize=897), doctimesecnum=PostingsFormat(name=NestedPulsing), mySpecialField=PostingsFormat(name=Memory), docname=Pulsing40(freqCutoff=18 minBlockSize=98 maxBlockSize=231)}, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {}, locale=da, timezone=Atlantic/Reykjavik
>    [junit] NOTE: all tests run in this JVM:
>    [junit] [LineDocSourceTest]
>    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=4,threads=1,free=124797192,total=128057344
>    [junit] ------------- ---------------- ---------------
>    [junit] Testcase: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest:       Caused an ERROR
>    [junit] java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>    [junit] java.lang.RuntimeException: java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:398)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:459)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>    [junit]
>    [junit]
>    [junit] Test org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest FAILED
>



-- 
lucidimagination.com

_____________________________________________

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


Re: test failure under Windows: trunk benchmark module: LineDocSourceTest: could not remove temp dir

Posted by Robert Muir <rc...@gmail.com>.
Hi, there is an issue already open:
https://issues.apache.org/jira/browse/LUCENE-3583

I made a first stab at a patch, the problem is it doesn't fix it all
the time, only some of the time.

On Mon, Nov 21, 2011 at 2:32 PM, Steven A Rowe <sa...@syr.edu> wrote:
> Under Windows 7, this test fails 100% of the time for me - no other Lucene/Solr test does this:
>
>   cd modules/benchmark
>   ant clean test -Dtestcase=LineDocSourceTest
>
> Test output follows:
>
> junit-sequential:
>    [junit] Testsuite: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest
>    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 1.472 sec
>    [junit]
>    [junit] ------------- Standard Error -----------------
>    [junit] java.io.IOException: could not delete C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp\one-line
>    [junit]     at org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:85)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:447)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    [junit]     at java.lang.reflect.Method.invoke(Method.java:597)
>    [junit]     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    [junit]     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    [junit]     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    [junit]     at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:37)
>    [junit]     at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>    [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
>    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
>    [junit] path C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp allocated from
>    [junit]     org.apache.lucene.util._TestUtil.getTempDir(_TestUtil.java:65)
>    [junit]     org.apache.lucene.benchmark.BenchmarkTestCase.beforeClassBenchmarkTestCase(BenchmarkTestCase.java:39)
>    [junit] NOTE: reproduce with (hopefully): ant test -Dtestcase=LineDocSourceTest -Dtests.seed=-10f2bc7ed2006d82:0:-285ae758d1d45d49 -Dargs="-Dfile.encoding=Cp1252"
>    [junit] NOTE: test params are: codec=Lucene40: {docid=PostingsFormat(name=Memory), body=PostingsFormat(name=MockRandom), docdatenum=PostingsFormat(name=Lucene40WithOrds), docdate=PostingsFormat(name=MockRandom), doctitle=MockFixedIntBlock(blockSize=897), doctimesecnum=PostingsFormat(name=NestedPulsing), mySpecialField=PostingsFormat(name=Memory), docname=Pulsing40(freqCutoff=18 minBlockSize=98 maxBlockSize=231)}, sim=RandomSimilarityProvider(queryNorm=false,coord=false): {}, locale=da, timezone=Atlantic/Reykjavik
>    [junit] NOTE: all tests run in this JVM:
>    [junit] [LineDocSourceTest]
>    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_21 (64-bit)/cpus=4,threads=1,free=124797192,total=128057344
>    [junit] ------------- ---------------- ---------------
>    [junit] Testcase: org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest:       Caused an ERROR
>    [junit] java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>    [junit] java.lang.RuntimeException: java.lang.AssertionError: could not remove temp dir: C:\svn\lucene\dev\trunk\modules\benchmark\build\test\1\benchmark3213632136tmp
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:398)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.clearTempDirectoriesAfterClass(LuceneTestCase.java:459)
>    [junit]     at org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:377)
>    [junit]
>    [junit]
>    [junit] Test org.apache.lucene.benchmark.byTask.feeds.LineDocSourceTest FAILED
>



-- 
lucidimagination.com

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