lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5684) Add best effort detection when index is removed & recreated before openIfChanged
Date Fri, 23 May 2014 09:53:01 GMT

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

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

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

LUCENE-5684: best effort detection of (illegal) reopen after index was blown away

> Add best effort detection when index is removed & recreated before openIfChanged
> --------------------------------------------------------------------------------
>
>                 Key: LUCENE-5684
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5684
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5684.patch, LUCENE-5684.patch
>
>
> I dug into the confusing NPE from the java-user email with subject "[lucene 4.6] NPE
when calling IndexReader#openIfChanged".
> It happens because the app was opening an IndexReader, then rm -rf the entire index,
build a new one, then calling reopen.  This is invalid usage (the app should instead use IW.deleteAll,
or open new IW with OpenMode.CREATE), but I'd like to add a minor best effort check...



--
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


Mime
View raw message