hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1341) Create HTable Pooler
Date Sat, 02 May 2009 23:00:30 GMT

    [ 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.


Mime
View raw message