[
https://issues.apache.org/jira/browse/HBASE-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764358#action_12764358
]
stack commented on HBASE-1891:
------------------------------
I like your little Tester program Zheng.
Help me out. I think I figured how to use it. After loading a table, I then
ran it multiple times with following arguments:
{code}
-read true -caching 1000 -create false -write false
{code}
I keep doing it, multiple times, and I get this -- success -- every time it
seems.
{code}
09/10/10 09:46:51 DEBUG client.HTable$ClientScanner: Creating scanner over
myLittleHBaseTable starting at key ''
09/10/10 09:46:51 DEBUG client.HTable$ClientScanner: Advancing internal scanner
to startKey at ''
09/10/10 09:46:51 DEBUG client.HConnectionManager$TableServers: Cache hit for
row <> in tableName myLittleHBaseTable: location server 192.168.1.149:61385,
location region name myLittleHBaseTable,,1255192797711
09/10/10 09:46:52 INFO Tester: 152001 records/second
09/10/10 09:46:53 INFO Tester: 171502 records/second
09/10/10 09:46:54 INFO Tester: 149498 records/second
09/10/10 09:46:55 INFO Tester: 162000 records/second
09/10/10 09:46:56 INFO Tester: 195338 records/second
09/10/10 09:46:57 INFO Tester: 150662 records/second
09/10/10 09:46:57 DEBUG client.HTable$ClientScanner: Finished with scanning at
REGION => {NAME => 'myLittleHBaseTable,,1255192797711', STARTKEY => '', ENDKEY
=> '', ENCODED => 684003008, TABLE => {{NAME => 'myLittleHBaseTable', FAMILIES
=> [{NAME => 'myLittleFamily', COMPRESSION => 'NONE', VERSIONS => '3', TTL =>
'2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE =>
'true'}]}}
Data verified successfully!
Average speed: 158252 records/second
{code}
I get same whether I run inside in eclipse or out on command line.
I'm on hbase trunk (r823874).
> Scanner is jumping a full cache of rows
> ---------------------------------------
>
> Key: HBASE-1891
> URL: https://issues.apache.org/jira/browse/HBASE-1891
> Project: Hadoop HBase
> Issue Type: Bug
> Components: client
> Reporter: Zheng Shao
> Assignee: Amandeep Khurana
> Attachments: Tester.java
>
>
> I ran my program multiple times and this is happening almost all the time.
> Basically, the ResultScanner is skipping a full cache of rows. I set my
> caching size to 1000, and when I expect to see row 60000 it gave me 60999.
> My code (will attach here) is creating a new table with a single column
> family and qualifier, and then write 1 million rows with ascending keys, then
> immediately read them back to verify.
> The HBase code is from:
> http://svn.apache.org/repos/asf/hadoop/hbase/trunk at
> Exported revision 821973.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.