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

NullPointerException in ClientScanner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.1
    • 0.20.2, 0.90.0
    • None
    • None

    Description

      The following stack trace was observed whilst loading a large volume of data into Hbase:

      Caused by: java.lang.NullPointerException
      at org.apache.hadoop.hbase.client.HTable$ClientScanner.next(HTable.java:2008)
      at org.apache.hadoop.hbase.client.HTable$ClientScanner$1.hasNext(HTable.java:2089)

      It appears that lastResult is initialized to be null, however in the exception handling code there isn't any null checking before the field is accessed for get row:

      this.scan.setStartRow(this.lastResult.getRow());

      There should be some additional null checking logic here.

      Attachments

        1. HBASE-1934.patch
          1 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            dploeg Daniel Ploeg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: