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 CF4E7101AE for ; Wed, 25 Sep 2013 00:54:03 +0000 (UTC) Received: (qmail 95646 invoked by uid 500); 25 Sep 2013 00:54:03 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95601 invoked by uid 500); 25 Sep 2013 00:54:03 -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 95553 invoked by uid 99); 25 Sep 2013 00:54:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 00:54:03 +0000 Date: Wed, 25 Sep 2013 00:54:03 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-9649) HFilePrettyPrinter should not throw a NPE if FirstKey or LastKey is null. 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-9649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Marc Spaggiari updated HBASE-9649: --------------------------------------- Status: Patch Available (was: Open) > HFilePrettyPrinter should not throw a NPE if FirstKey or LastKey is null. > ------------------------------------------------------------------------- > > Key: HBASE-9649 > URL: https://issues.apache.org/jira/browse/HBASE-9649 > Project: HBase > Issue Type: Bug > Reporter: Jean-Marc Spaggiari > Assignee: Jean-Marc Spaggiari > Attachments: HBASE-9649-v0-trunk.patch, HBASE-9649-v1-trunk.patch > > > Should instead "simply" display "null"... > {code} > /usr/lib/hbase/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -m -s -v -f > /hbase/compound3/5ab5fdfcf2aff2633e1d6d5089c96aa2/d/fca0882dc7624342a8f4fce4b89420ff > 13/09/24 12:33:40 INFO util.ChecksumType: Checksum using > org.apache.hadoop.util.PureJavaCrc32 > Scanning -> > /hbase/compound3/5ab5fdfcf2aff2633e1d6d5089c96aa2/d/fca0882dc7624342a8f4fce4b89420ff > 13/09/24 12:33:41 INFO hfile.CacheConfig: Allocating LruBlockCache with > maximum size 2.9g > 13/09/24 12:33:41 ERROR metrics.SchemaMetrics: Inconsistent configuration. > Previous configuration for using table name in metrics: true, new > configuration: false > 13/09/24 12:33:41 WARN snappy.LoadSnappy: Snappy native library is available > 13/09/24 12:33:41 INFO util.NativeCodeLoader: Loaded the native-hadoop > library > 13/09/24 12:33:41 INFO snappy.LoadSnappy: Snappy native library loaded > 13/09/24 12:33:41 INFO compress.CodecPool: Got brand-new decompressor > Block index size as per heapsize: 336 > Exception in thread "main" java.lang.NullPointerException > at org.apache.hadoop.hbase.KeyValue.keyToString(KeyValue.java:716) > at > org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.toStringFirstKey(AbstractHFileReader.java:138) > at > org.apache.hadoop.hbase.io.hfile.AbstractHFileReader.toString(AbstractHFileReader.java:149) > at > org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.printMeta(HFilePrettyPrinter.java:318) > at > org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.processFile(HFilePrettyPrinter.java:234) > at > org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.run(HFilePrettyPrinter.java:189) > at org.apache.hadoop.hbase.io.hfile.HFile.main(HFile.java:756) > {code} -- 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