Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 58881 invoked from network); 15 Sep 2009 20:56:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 20:56:26 -0000 Received: (qmail 55842 invoked by uid 500); 15 Sep 2009 20:56:25 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 55805 invoked by uid 500); 15 Sep 2009 20:56:25 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 55795 invoked by uid 99); 15 Sep 2009 20:56:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 20:56:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 20:56:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4E7E0234C052 for ; Tue, 15 Sep 2009 13:55:58 -0700 (PDT) Message-ID: <1756224368.1253048158319.JavaMail.jira@brutus> Date: Tue, 15 Sep 2009 13:55:58 -0700 (PDT) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-1818) HFile code review and refinement In-Reply-To: <1333397383.1252335657798.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755685#action_12755685 ] stack commented on HBASE-1818: ------------------------------ Ok on 1. and 2 (I opened new issue to account for the case you discovered in your review where its possible we miss a key if many instances and they span a block -- hbase-1841). What about this change: {code} @@ -860,7 +859,7 @@ if (trailer.metaIndexCount == 0) { return null; // there are no meta blocks } - if (metaIndex == null) { + if ((metaIndex == null) || (metaIndex.count == 0)) { throw new IOException("Meta index not loaded"); } byte [] mbname = Bytes.toBytes(metaBlockName); {code} Is it possible that metaIndex is loaded but empty? Thanks Schubert > HFile code review and refinement > -------------------------------- > > Key: HBASE-1818 > URL: https://issues.apache.org/jira/browse/HBASE-1818 > Project: Hadoop HBase > Issue Type: Improvement > Components: io > Affects Versions: 0.20.0 > Reporter: Schubert Zhang > Assignee: Schubert Zhang > Priority: Minor > Fix For: 0.21.0 > > Attachments: HFile-v3.patch, HFile-v4.patch > > > HFile is a good mimic of Google's SSTable file format. And we want HFile to become a common file format of hadoop in the near future. > We will review the code of HFile and record the comments here, and then provide fixed patch after the review. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.