[ 
https://issues.apache.org/jira/browse/LUCENE-5368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Willnauer closed LUCENE-5368.
-----------------------------------

    Resolution: Invalid

I guess you convinced me on this one. I really missed the DB connection thing 
which makes lots of sense. I think we should harden the contract on Directory 
and document that the behavior is not guaranteed but is an impl. detail that 
can change at any time.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to