hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ryan rawson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2393) ThriftServer instantiates a new HTable per request
Date Thu, 08 Apr 2010 02:35:36 GMT

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

ryan rawson commented on HBASE-2393:
------------------------------------

sorry guys, it's not clear to me how the code limits to 100 construct calls. if you ended
up with 1000 thrift threads you'd need 1000 htable objects.

Why not use HTablePool?

> 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: Bogdan DRAGU
>             Fix For: 0.20.5, 0.21.0
>
>         Attachments: hbase-2393.patch
>
>
> 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.


Mime
View raw message