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

NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1, 2.0.0
    • 1.3.0, 2.0.0
    • Scanners
    • None
    • Reviewed

    Description

      Here is a part of skipKVsNewerThanReadpoint method:

            hfs.next();
            setCurrentCell(hfs.getKeyValue());
            if (this.stopSkippingKVsIfNextRow
                && getComparator().compareRows(cur.getRowArray(), cur.getRowOffset(),
                    cur.getRowLength(), startKV.getRowArray(), startKV.getRowOffset(),
                    startKV.getRowLength()) > 0) {
      
      

      If hfs has no more KVs, cur will be set to Null and on on the next step will throw NPE.

      Attachments

        1. HBASE-15884-1.patch
          1 kB
          Sergey Soldatov

        Activity

          People

            sergey.soldatov Sergey Soldatov
            sergey.soldatov Sergey Soldatov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: