You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2010/10/28 17:59:24 UTC

[jira] Commented: (LUCENE-2727) simulate out of open files in MockDirectoryWrapper

    [ https://issues.apache.org/jira/browse/LUCENE-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925850#action_12925850 ] 

Michael McCandless commented on LUCENE-2727:
--------------------------------------------

This looks like a great start!

So any test that has enabled MockDirW's deterministic exceptions will now have a chance to throw on opening input or creating output.

Hmm... should we also call maybeThrowIOException?  Maybe make a new method maybeThrowAnyException :)

> simulate out of open files in MockDirectoryWrapper
> --------------------------------------------------
>
>                 Key: LUCENE-2727
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2727
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: Build
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>
>         Attachments: 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org