Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D97D6DC19 for ; Sat, 5 Jan 2013 03:12:15 +0000 (UTC) Received: (qmail 17804 invoked by uid 500); 5 Jan 2013 03:12:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 17764 invoked by uid 500); 5 Jan 2013 03:12:14 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 17731 invoked by uid 99); 5 Jan 2013 03:12:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 03:12:13 +0000 Date: Sat, 5 Jan 2013 03:12:13 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7414) Convert some HFile metadata to PB 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/HBASE-7414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13544547#comment-13544547 ] Ted Yu commented on HBASE-7414: ------------------------------- {code} + if (majorVersion > 2 || (majorVersion == 2 && minorVersion >= PBUF_TRAILER_MINOR_VERSION)) { ... + void deserializeFromPB(DataInputStream inputStream) throws IOException { + expectMinorVersion(PBUF_TRAILER_MINOR_VERSION); {code} expectMinorVersion() only checks minorVersion for equality. So when majorVersion goes to 3, we shouldn't be checking minorVersion, right ? > Convert some HFile metadata to PB > --------------------------------- > > Key: HBASE-7414 > URL: https://issues.apache.org/jira/browse/HBASE-7414 > Project: HBase > Issue Type: Task > Components: HFile > Reporter: stack > Assignee: Andrew Purtell > Priority: Critical > Fix For: 0.96.0 > > Attachments: 7414.patch > > > See HBASE-7201 > Convertion should be in a manner that does not prevent our being able to read old style hfiles with Writable metadata. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira