From 1822bb5d9578e3e650115a220132ab85e7db732a Mon Sep 17 00:00:00 2001 From: ramkrishna Date: Tue, 15 Dec 2015 10:34:25 +0530 Subject: [PATCH] HBASE-14895 Seek only to the newly flushed file on scanner reset on flush - Addendum (Ram) --- .../org/apache/hadoop/hbase/regionserver/StoreScanner.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java index 987a3f52495..5fdfa79a8ce 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java @@ -414,7 +414,6 @@ public class StoreScanner extends NonReversedNonLazyKeyValueScanner @Override public Cell peek() { - checkFlushed(); if (this.heap == null) { return this.lastTop; } @@ -810,7 +809,7 @@ public class StoreScanner extends NonReversedNonLazyKeyValueScanner // If there is a flush and the current scan is notified on the flush ensure that the // scan's heap gets reset and we do a seek on the newly flushed file. if(!this.closing) { - this.lastTop = this.heap.peek(); + this.lastTop = this.peek(); } else { return false; }