Index: src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV2.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV2.java (revision 1539757) +++ src/main/java/org/apache/hadoop/hbase/io/hfile/HFileReaderV2.java (working copy) @@ -972,6 +972,11 @@ includesMemstoreTS); } + @Override + public boolean isSeeked(){ + return this.block != null; + } + /** * Updates the current block to be the given {@link HFileBlock}. Seeks to * the the first key/value pair. @@ -998,6 +1003,9 @@ seeker.setCurrentBuffer(getEncodedBuffer(newBlock)); blockFetches++; + + // Reset the next indexed key + this.nextIndexedKey = null; } private ByteBuffer getEncodedBuffer(HFileBlock newBlock) {