HBASE-15884 NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan (Sergey Soldatov)
This commit is contained in:
parent
39dc19236e
commit
fa74baeb40
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue