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

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

+1 for the change: the less we rely on OS/filesystem specific semantics, like 
"delete on last close", the better.

On the patch, maybe move the incRef into IW.getReader?  And, maybe move the 
decRef into a new package private IW method that's called from SDR.onClose?  
I'd just rather have the "sync'd on writer" code inside IW's sources ....

> Let NRT Readers prevent their files from being removed.
> -------------------------------------------------------
>
>                 Key: LUCENE-5434
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5434
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Mark Miller
>             Fix For: 5.0, 4.7
>
>
> 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