HBASE-15884 NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan (Sergey Soldatov)

This commit is contained in:
tedyu 2016-05-25 08:58:28 -07:00
parent 39dc19236e
commit fa74baeb40
1 changed files with 2 additions and 2 deletions

View File

@ -253,9 +253,9 @@ public class StoreFileScanner implements KeyValueScanner {
while(enforceMVCC
&& cur != null
&& (cur.getSequenceId() > readPt)) {
hfs.next();
boolean hasNext = hfs.next();
setCurrentCell(hfs.getCell());
if (this.stopSkippingKVsIfNextRow
if (hasNext && this.stopSkippingKVsIfNextRow
&& getComparator().compareRows(cur, startKV) > 0) {
return false;
}