HBASE-16624 Fix MVCC DeSerialization bug in the HFileScannerImpl

Change-Id: Ia970619ac7369d24ed432e827319dfdca16143c2

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Nitin Aggarwal 2016-09-12 22:50:07 -07:00 committed by stack
parent 56be3ac7c8
commit 8c4b09dfba
1 changed files with 2 additions and 1 deletions

View File

@ -662,7 +662,8 @@ public class HFileReaderImpl implements HFile.Reader, Configurable {
long i = 0; long i = 0;
offsetFromPos++; offsetFromPos++;
if (remaining >= Bytes.SIZEOF_INT) { if (remaining >= Bytes.SIZEOF_INT) {
i = blockBuffer.getIntAfterPosition(offsetFromPos); // The int read has to be converted to unsigned long so the & op
i = (blockBuffer.getIntAfterPosition(offsetFromPos) & 0x00000000ffffffffL);
remaining -= Bytes.SIZEOF_INT; remaining -= Bytes.SIZEOF_INT;
offsetFromPos += Bytes.SIZEOF_INT; offsetFromPos += Bytes.SIZEOF_INT;
} }