Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9649

HFilePrettyPrinter should not throw a NPE if FirstKey or LastKey is null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.95.2
    • 0.98.0, 0.96.0, 0.94.13
    • util
    • None
    • Reviewed

    Description

      Should instead "simply" display "null"...

      /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)
      
      

      Attachments

        1. HBASE-9649-v0-trunk.patch
          0.8 kB
          Jean-Marc Spaggiari
        2. HBASE-9649-v1-0.94.patch
          1 kB
          Jean-Marc Spaggiari
        3. HBASE-9649-v1-trunk.patch
          1 kB
          Jean-Marc Spaggiari

        Activity

          People

            jmspaggi Jean-Marc Spaggiari
            jmspaggi Jean-Marc Spaggiari
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: