HBASE-15884 NPE in StoreFileScanner#skipKVsNewerThanReadpoint during reverse scan (Sergey Soldatov)
This commit is contained in:
parent
2346b5e216
commit
a049b5f799
|
@ -257,9 +257,9 @@ public class StoreFileScanner implements KeyValueScanner {
|
||||||
while(enforceMVCC
|
while(enforceMVCC
|
||||||
&& cur != null
|
&& cur != null
|
||||||
&& (cur.getMvccVersion() > readPt)) {
|
&& (cur.getMvccVersion() > readPt)) {
|
||||||
hfs.next();
|
boolean hasNext = hfs.next();
|
||||||
setCurrentCell(hfs.getKeyValue());
|
setCurrentCell(hfs.getKeyValue());
|
||||||
if (this.stopSkippingKVsIfNextRow
|
if (hasNext && this.stopSkippingKVsIfNextRow
|
||||||
&& getComparator().compareRows(cur.getRowArray(), cur.getRowOffset(),
|
&& getComparator().compareRows(cur.getRowArray(), cur.getRowOffset(),
|
||||||
cur.getRowLength(), startKV.getRowArray(), startKV.getRowOffset(),
|
cur.getRowLength(), startKV.getRowArray(), startKV.getRowOffset(),
|
||||||
startKV.getRowLength()) > 0) {
|
startKV.getRowLength()) > 0) {
|
||||||
|
|
Loading…
Reference in New Issue