[ 
https://issues.apache.org/jira/browse/HBASE-4938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164964#comment-13164964
 ] 

dhruba borthakur commented on HBASE-4938:
-----------------------------------------

Todd, thanks for asking. We have some application code running inside the 
regionserver. It atomically updates a row and maintains a count of the number 
of entries inside that row. The reason it is part of the region server code is 
because we need the 'count' updation to be atomic and performant 
read-modify-write. The code to read the previous value of the 'count' will 
invoke getScanner(scan, Long.Max_VALUE) so that it can read the most recent 
value of 'count' (even if the previous 'count' update is still in the process 
of getting committed). 
                
> Create a HRegion.getScanner public method that allows reading from a 
> specified readPoint
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-4938
>                 URL: https://issues.apache.org/jira/browse/HBASE-4938
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: dhruba borthakur
>            Assignee: dhruba borthakur
>            Priority: Minor
>
> There is an existing api HRegion.getScanner(Scan) that allows scanning a 
> table. My proposal is to extend it to HRegion.getScanner(Scan, long readPoint)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to