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

[jira] Resolved: (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:all-tabpanel ]

Michael McCandless resolved LUCENE-2812.
----------------------------------------

    Resolution: Fixed

> 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