Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F3AA112EC for ; Mon, 22 Sep 2014 21:29:36 +0000 (UTC) Received: (qmail 65201 invoked by uid 500); 22 Sep 2014 21:29:34 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 65098 invoked by uid 500); 22 Sep 2014 21:29:34 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 64953 invoked by uid 99); 22 Sep 2014 21:29:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 21:29:34 +0000 Date: Mon, 22 Sep 2014 21:29:34 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-5972) Index too old/new is not a corruption MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14143857#comment-14143857 ] Robert Muir commented on LUCENE-5972: ------------------------------------- Looks good, can we remove this assert in both classes? {code} assert resourceDesc != null; {code} Such things do not belong in exceptions. Maybe while we are here, we can fix CorruptIndexException, to not throw NPE if its 'message' is null. Currently it has: {code} super(message + " (resource=" + resourceDescription + ")", cause); {code} This can just be super(Objects.toString(message) + ... > 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, 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