You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/12/13 21:37:07 UTC
[jira] [Updated] (LUCENE-5368) Only close IndexOuput when
MockDirectoryWrapper crashes...
[ https://issues.apache.org/jira/browse/LUCENE-5368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer updated LUCENE-5368:
------------------------------------
Attachment: LUCENE-5368.patch
here is a patch
> Only close IndexOuput when MockDirectoryWrapper crashes...
> ----------------------------------------------------------
>
> Key: LUCENE-5368
> URL: https://issues.apache.org/jira/browse/LUCENE-5368
> Project: Lucene - Core
> Issue Type: Wish
> Reporter: Simon Willnauer
> Priority: Minor
> Attachments: LUCENE-5368.patch
>
>
> The directory contract allows to read from opened IndexInput even after Directory.close() is called as long as the input is not closed. In MockDirWrapper we close the index input forcefully during close (sometimes if we run check index) when we try to crash the dir. I think we should just close the IndexOutput in that case and let the index input open until they are closed.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org