You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bogdan DRAGU (JIRA)" <ji...@apache.org> on 2010/04/01 13:46:27 UTC

[jira] Updated: (HBASE-2393) ThriftServer instantiates a new HTable per request

     [ https://issues.apache.org/jira/browse/HBASE-2393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bogdan DRAGU updated HBASE-2393:
--------------------------------

                 Tags: hbase HTable ThreadLocal mapping 
    Affects Version/s:     (was: 0.20.3)
                       0.21.0
               Status: Patch Available  (was: Open)

Added a patch that uses a ThreadLocal mapping from tables names to HTable instances. Whenever an HTable instance is requested, the table name is used to search into the mapping and, if present, the corresponding HTable instance is returned, otherwise a new entry is added in this mapping and the newly created HTable is returned. 

> ThriftServer instantiates a new HTable per request
> --------------------------------------------------
>
>                 Key: HBASE-2393
>                 URL: https://issues.apache.org/jira/browse/HBASE-2393
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: thrift
>    Affects Versions: 0.21.0
>            Reporter: Jean-Daniel Cryans
>            Assignee: Cosmin Lehene
>             Fix For: 0.20.4, 0.21.0
>
>
> Every request creates a new HTable in ThriftServer, this is highly inefficient. It's even worse now that the HTable constructor does a RPC to the master.
> Assigning to Cosmin since he said they have some code they can share.

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