lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3147) MockDirectoryWrapper should track open file handles of IndexOutput too
Date Thu, 26 May 2011 11:49:47 GMT


Shai Erera updated LUCENE-3147:

    Attachment: LUCENE-3147.patch

Patch against trunk fixes MockDirWrapper to track open files of both II and IO. Also, I've
made the maps private and added methods for removing and IndexInput/Output.

One test that fails (previously failed to delete dir, when FSDirectory was used):
NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterWithThreads -Dtestmethod=testIOExceptionDuringWriteSegmentWithThreads
NOTE: test params are: codec=RandomCodecProvider: {field=MockFixedIntBlock(blockSize=6)},
locale=el_CY, timezone=Europe/Volgograd
NOTE: all tests run in this JVM:
NOTE: Windows 7 6.1 build 7600 amd64/IBM Corporation 1.6.0 (64-bit)/cpus=2,threads=4,free=37703064,total=48524288

I'm sure there are other tests too. I'll try to find a non-threaded one.

> MockDirectoryWrapper should track open file handles of IndexOutput too
> ----------------------------------------------------------------------
>                 Key: LUCENE-3147
>                 URL:
>             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
> 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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message