lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Updated: (LUCENE-2727) simulate out of open files in MockDirectoryWrapper
Date Thu, 28 Oct 2010 17:14:23 GMT


Robert Muir updated LUCENE-2727:

    Attachment: LUCENE-2727.patch

ok here's another start, using the idea of maybeThrowIOException too.

this makes things somewhat tricky, really tests that enable these ioexceptions aren't very
prepared to handle them coming from the reader (note: the MockIndexInput etc never throws
these, only output!)

i hacked a few of the tests, and _TestUtil.checkIndex, but there are a still a few more that
need to be fixed.

The problem is, these are some of our best tests and I don't want us to actually lose coverage

> simulate out of open files in MockDirectoryWrapper
> --------------------------------------------------
>                 Key: LUCENE-2727
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: Build
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2727.patch, LUCENE-2727.patch
> currently we do disk-full tests (in writeBytes), but it would be good to have test coverage
for the case
> where the machine runs out of open files.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message