From bd8be047373985cd34e729db3ecafdc6d8ade2fd Mon Sep 17 00:00:00 2001 From: Sergey Soldatov Date: Tue, 5 Sep 2023 16:59:28 -0700 Subject: [PATCH] HBASE-28055 Performance improvement for scan over several stores. (#5379) Signed-off-by: Ankit Singhal Signed-off-by: Tak Lon (Stephen) Wu --- .../org/apache/hadoop/hbase/regionserver/StoreScanner.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 be526f85d1e2..9fb4d9788eb8 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 @@ -934,7 +934,9 @@ protected boolean trySkipToNextColumn(Cell cell) throws IOException { // We need this check because it may happen that the new scanner that we get // during heap.next() is requiring reseek due of fake KV previously generated for // ROWCOL bloom filter optimization. See HBASE-19863 for more details - if (useRowColBloom && nextCell != null && matcher.compareKeyForNextColumn(nextCell, cell) < 0) { + if ( + useRowColBloom && nextCell != null && cell.getTimestamp() == PrivateConstants.OLDEST_TIMESTAMP + ) { return false; } return true;