[
https://issues.apache.org/jira/browse/LUCENE-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040670#comment-13040670
]
Robert Muir commented on LUCENE-3147:
-------------------------------------
Here's the stacktrace from the error on windows:
{noformat}
[junit] ------------- Standard Error -----------------
[junit] java.io.IOException: could not delete
c:\Users\rmuir\workspace\leaky3147\lucene\build\test\3\test388355461394710068tmp\write.lock
[junit] at org.apache.lucene.util._TestUtil.rmDir(_TestUtil.java:72)
[junit] at
org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:460)
...
[junit] path
c:\Users\rmuir\workspace\leaky3147\lucene\build\test\3\test388355461394710068tmp
allocated from
[junit]
org.apache.lucene.util.LuceneTestCase.newDirectoryImpl(LuceneTestCase.java:1143)
[junit]
org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:930)
[junit]
org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:922)
[junit]
org.apache.lucene.index.TestIndexReader.testFieldCacheReuseAfterReopen(TestIndexReader.java:1661)
{noformat}
> MockDirectoryWrapper should track open file handles of IndexOutput too
> ----------------------------------------------------------------------
>
> Key: LUCENE-3147
> URL: https://issues.apache.org/jira/browse/LUCENE-3147
> Project: Lucene - Java
> Issue Type: Test
> Components: general/test
> Reporter: Shai Erera
> Assignee: Shai Erera
> Priority: Minor
> Fix For: 3.2, 4.0
>
> Attachments: LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch,
> LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch, LUCENE-3147.patch,
> LUCENE-3147.patch, LUCENE-3147.patch
>
>
> MockDirectoryWrapper currently tracks open file handles of IndexInput only.
> Therefore IO files that are not closed do not fail our tests, which can then
> lead to test directories fail to delete on Windows. We should make sure all
> open files are tracked and if they are left open, fail the test. I'll attach
> a patch shortly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]