[ 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to