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

Andrew Purtell commented on HBASE-1341:
---------------------------------------

The patch could call size() on the CLQ instead, that would be no problem. 
"currentSize" was an attempt to avoid the overhead of that, which is llinear 
not constant time according to Sun's javadoc. A race would mean occasional 
extra pooled instances, some small factor. "currentSize" is declared as 
volatile, which would keep that window small, right? 

> Create HTable Pooler
> --------------------
>
>                 Key: HBASE-1341
>                 URL: https://issues.apache.org/jira/browse/HBASE-1341
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: client, io
>            Reporter: Jonathan Gray
>            Priority: Minor
>             Fix For: 0.20.0
>
>         Attachments: hbase-1341-2.patch, hbase-1341.patch
>
>
> A client class that takes care of properly pooling HTable references for use 
> in multi-threaded, low-latency Java clients.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to