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

Mark Miller commented on SOLR-9902:
-----------------------------------

I think it probably makes sense to throw an exception. For index integrity we 
really need a move rather than creating a new file unless the directory factory 
is ephemeral - so we don't want to easily hide move not working when using 
local fs or make it a normal path that we try multiple ways to move a file 
(beyond attempting an atomic move first). If neither an atomic or std move 
work, something should be very wrong.

> StandardDirectoryFactory should use Files API for it's move implementation.
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-9902
>                 URL: https://issues.apache.org/jira/browse/SOLR-9902
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: master (7.0), 6.4
>
>         Attachments: SOLR-9902.patch
>
>
> It's done in a platform independent way as opposed to the old File API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to