You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2010/12/13 16:59:03 UTC

[jira] Commented: (LUCENE-2812) IndexReader.indexExists sometimes returns true when an index isn't present

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

Shai Erera commented on LUCENE-2812:
------------------------------------

Looks good !

> IndexReader.indexExists sometimes returns true when an index isn't present
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-2812
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2812
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2812.patch
>
>
> If you open a writer on a new dir and prepareCommit but don't finish the commit, IndexReader.indexExists incorrectly returns true, because it just checks for whether a segments_N file is present and not whether it can be successfully read.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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