You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2014/09/22 22:58:34 UTC
[jira] [Commented] (LUCENE-5972) Index too old/new is not a
corruption
[ https://issues.apache.org/jira/browse/LUCENE-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143808#comment-14143808 ]
Robert Muir commented on LUCENE-5972:
-------------------------------------
Why are the constructors taking datainput removed? This forces calls to toString(), which will cause NPE in some cases (whereas before, it would just concatenate "null").
If things go corrupt, who knows what could go wrong, i think its best to avoid this.
> Index too old/new is not a corruption
> -------------------------------------
>
> Key: LUCENE-5972
> URL: https://issues.apache.org/jira/browse/LUCENE-5972
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Ryan Ernst
> Attachments: LUCENE-5972.patch
>
>
> {{IndexFormatTooOldException}} and {{IndexFormatTooNewException}} both extend from {{CorruptIndexException}}. But this is not a corruption, it is simply an unsupported version of an index. They should just extend {{IOException}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org