Skip to content

Commit 4d175ee

Browse files
committed
HBASE-28055 Performance improvement for scan over several stores.
1 parent 5527dd9 commit 4d175ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.apache.hadoop.hbase.CellComparator;
3030
import org.apache.hadoop.hbase.CellUtil;
3131
import org.apache.hadoop.hbase.DoNotRetryIOException;
32+
import org.apache.hadoop.hbase.HConstants;
3233
import org.apache.hadoop.hbase.KeyValue;
3334
import org.apache.hadoop.hbase.KeyValueUtil;
3435
import org.apache.hadoop.hbase.PrivateCellUtil;
@@ -935,7 +936,7 @@ protected boolean trySkipToNextColumn(Cell cell) throws IOException {
935936
// We need this check because it may happen that the new scanner that we get
936937
// during heap.next() is requiring reseek due of fake KV previously generated for
937938
// ROWCOL bloom filter optimization. See HBASE-19863 for more details
938-
if (useRowColBloom && nextCell != null && matcher.compareKeyForNextColumn(nextCell, cell) < 0) {
939+
if (useRowColBloom && nextCell != null && cell.getTimestamp() == PrivateConstants.OLDEST_TIMESTAMP) {
939940
return false;
940941
}
941942
return true;

0 commit comments

Comments
 (0)