[ https://issues.apache.org/jira/browse/HBASE-21620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16737131#comment-16737131 ]
Zheng Hu commented on HBASE-21620: ---------------------------------- I guess the bottleneck is here, Let me have a test.. {code} 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 d51fdf0701..f0fbf3e8a1 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 @@ -684,7 +684,7 @@ public class StoreScanner extends NonReversedNonLazyKeyValueScanner case SEEK_NEXT_USING_HINT: Cell nextKV = matcher.getNextKeyHint(cell); - if (nextKV != null) { + if (nextKV != null && comparator.compare(nextKV, cell) > 0) { seekAsDirection(nextKV); NextState stateAfterSeekByHint = needToReturn(outResult); if (stateAfterSeekByHint != null) { {code} > Problem in scan query when using more than one column prefix filter in some > cases. > ---------------------------------------------------------------------------------- > > Key: HBASE-21620 > URL: https://issues.apache.org/jira/browse/HBASE-21620 > Project: HBase > Issue Type: Bug > Components: scan > Affects Versions: 3.0.0, 1.5.0, 2.2.0, 1.4.8, 2.1.2, 2.0.4 > Environment: hbase-1.4.8, hbase-1.4.9 > hadoop-2.7.3 > Reporter: Mohamed Mohideen Meeran > Assignee: Zheng Hu > Priority: Major > Fix For: 3.0.0, 2.2.0, 2.1.2, 2.0.4 > > Attachments: HBASE-21620.branch-1.patch, HBASE-21620.v1.patch, > HBASE-21620.v2.patch, HBASE-21620.v3.patch, HBASE-21620.v3.patch, > HBaseImportData.java, columnkey.txt, file.txt, test.patch > > > In some cases, unable to get the scan results when using more than one column > prefix filter. > Attached a java file to import the data which we used and a text file > containing the values.. > While executing the following query (hbase shell as well as java program) it > is waiting indefinitely and after RPC timeout we got the following error.. > Also we noticed high cpu, high load average and very frequent young gc in > the region server containing this row... > scan 'namespace:tablename',\{STARTROW => 'test',ENDROW => 'test', FILTER => > "ColumnPrefixFilter('1544770422942010001_') OR > ColumnPrefixFilter('1544769883529010001_')"} > ROW COLUMN+CELL > ERROR: Call id=18, > waitTime=60005, rpcTimetout=60000 > > Note: Table scan operation and scan with a single column prefix filter works > fine in this case. > When we check the same query in hbase-1.2.5 it is working fine. > Can you please help me on this.. -- This message was sent by Atlassian JIRA (v7.6.3#76005)