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

Michael McCandless commented on LUCENE-5434:
--------------------------------------------

Thanks Mark, that looks great.

I think we should modify existing test(s) to confirm IW never even attempts to 
delete a still-open file, when only NRT readers are being opened/closed?

E.g. maybe we could add a "acts like HDFS" mode to MockDirectoryWrapper, where 
if a still-open file is deleted it then refuses to allow any further operations 
against that file.  Or, to make debugging easier, just have MDW throw an 
unchecked exception when an attempt is made to delete a still-open file?

> NRT support for file systems that do no have delete on last close or cannot 
> delete while referenced semantics.
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5434
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5434
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 5.0, 4.7
>
>         Attachments: LUCENE-5434.patch
>
>
> See SOLR-5693 and our HDFS support - for something like HDFS to work with 
> NRT, we need an ability for near realtime readers to hold references to their 
> files to prevent deletes.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to