You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/23 18:06:44 UTC

[jira] [Commented] (LUCENE-5543) Remove Directory.fileExists

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

ASF subversion and git services commented on LUCENE-5543:
---------------------------------------------------------

Commit 1580540 from [~mikemccand] in branch 'dev/trunk'
[ https://svn.apache.org/r1580540 ]

LUCENE-5543 remove/deprecate Directory.fileExists

> Remove Directory.fileExists
> ---------------------------
>
>                 Key: LUCENE-5543
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5543
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/store
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.8, 5.0
>
>         Attachments: LUCENE-5543.patch
>
>
> Since 3.0.x/3.6.x (see LUCENE-5541), Lucene has substantially removed
> its reliance on fileExists to the point where I think we can fully
> remove it now.
> Like the other iffy IO methods we've removed over time (touchFile,
> fileModified, seeking back during write, ...), File.exists is
> dangerous because a low level IO issue can cause it to return false
> when it should have returned true.  The fewer IO operations we rely on
> the more reliable/portable Lucene is.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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