[
https://issues.apache.org/jira/browse/HBASE-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705340#action_12705340
]
stack commented on HBASE-1341:
------------------------------
Patch looks good to me though I'd just synchronize put and get so following
sections of code were executed by one thread at a time:
{code}
+ table = pool.remove();
+ currentSize--;
{code}
and
{code}
+ pool.add(table);
+ currentSize++;
{code}
> 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.