Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 453 invoked from network); 17 Jun 2008 03:30:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 03:30:05 -0000 Received: (qmail 3615 invoked by uid 500); 17 Jun 2008 03:30:08 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 3599 invoked by uid 500); 17 Jun 2008 03:30:08 -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 3588 invoked by uid 99); 17 Jun 2008 03:30:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2008 20:30:07 -0700 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, 17 Jun 2008 03:29:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 060F3234C142 for ; Mon, 16 Jun 2008 20:29:45 -0700 (PDT) Message-ID: <1884872863.1213673385023.JavaMail.jira@brutus> Date: Mon, 16 Jun 2008 20:29:45 -0700 (PDT) From: "Rong-En Fan (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Created: (HBASE-693) TestGet2::testGetClosestRowBefore() failed with NPE after HADOOP-3472 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org TestGet2::testGetClosestRowBefore() failed with NPE after HADOOP-3472 --------------------------------------------------------------------- Key: HBASE-693 URL: https://issues.apache.org/jira/browse/HBASE-693 Project: Hadoop HBase Issue Type: Bug Components: regionserver Affects Versions: 0.2.0 Environment: hadoop 0.17.0 + HADOOP-3472, HBase latest trunk Reporter: Rong-En Fan After HADOOP-3472, MapFile.getClosest(.., ..., true) gives the correct value. In the unit test, we have 10 20 30 35 <== deleted 40 in the MapFile. so in HStore.java's rowAtOrBeforeFromMapFile(MapFile.reader, bytes, ...) readkey = (HStoreKey)map.getClosest(searchKey, readval, true); it gets the deleted key 35. So it can not be added into candidateKeys. The next key is 40, which is after the search key 38. So, we ends up with empty candidateKeys. Therefore, we lastKey() is null. cause TestGet2.java line 236 failed with NPE. Since MapFile.Reader has no prev(key) method, not sure what's the best to do in HStore.java. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.