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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
