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 49ABD454A for ; Tue, 21 Jun 2011 23:57:11 +0000 (UTC) Received: (qmail 9629 invoked by uid 500); 21 Jun 2011 23:57:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 9464 invoked by uid 500); 21 Jun 2011 23:57:08 -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 9322 invoked by uid 99); 21 Jun 2011 23:57:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 23:57:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 23:57:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A85384270E9 for ; Tue, 21 Jun 2011 23:56:47 +0000 (UTC) Date: Tue, 21 Jun 2011 23:56:47 +0000 (UTC) From: "Hoss Man (JIRA)" To: dev@lucene.apache.org Message-ID: <2096824825.26740.1308700607686.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <389912999.26589.1308696107163.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3226) rename SegmentInfos.FORMAT_3_1 and improve description in CheckIndex 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-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052950#comment-13052950 ] Hoss Man commented on LUCENE-3226: ---------------------------------- looks good to me. strictly speaking when backporting we probably need to leave FORMAT_3_1 as a deprecated alias for FORMAT_SEGMENT_RECORDS_VERSION since it's currently public (but that doesn't need to affect trunk) > rename SegmentInfos.FORMAT_3_1 and improve description in CheckIndex > -------------------------------------------------------------------- > > Key: LUCENE-3226 > URL: https://issues.apache.org/jira/browse/LUCENE-3226 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 3.1, 3.2 > Reporter: Hoss Man > Assignee: Robert Muir > Fix For: 3.3, 4.0 > > Attachments: LUCENE-3226.patch > > > A 3.2 user recently asked if something was wrong because CheckIndex was reporting his (newly built) index version as... > {noformat} > Segments file=segments_or numSegments=1 version=FORMAT_3_1 [Lucene 3.1] > {noformat} > It seems like there are two very confusing pieces of information here... > 1) the variable name of SegmentInfos.FORMAT_3_1 seems like poor choice. All other FORMAT_* constants in SegmentInfos are descriptive of the actual change made, and not specific to the version when they were introduced. > 2) whatever the name of the FORMAT_* variable, CheckIndex is labeling it "Lucene 3.1", which is missleading since that format is alwasy used in 3.2 (and probably 3.3, etc...). > I suggest: > a) rename FORMAT_3_1 to something like "FORMAT_SEGMENT_RECORDS_VERSION" > b) change CheckIndex so that the label for the "newest" format always ends with " and later" (ie: "Lucene 3.1 and later") so when we release versions w/o a format change we don't have to remember to manual list them in CheckIndex. when we *do* make format changes and update CheckIndex " and later" can be replaced with " to X.Y" and the new format can be added -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org