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

jirapos...@reviews.apache.org commented on HBASE-4460:
------------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/2410/#review2640
-----------------------------------------------------------


This makes much more sense than having to run a separate thrift server.


/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionThriftServer.java
<https://reviews.apache.org/r/2410/#comment5945>

    I think we're no longer supposed to put the copyright notice with year in, 
but just the license grant.



/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionThriftServer.java
<https://reviews.apache.org/r/2410/#comment5948>

    I wish there'd be a more lightweight way to do this. I know these are 
cached in BaseHandler, but each HTable will have it's ThreadPoolExecutor, etc, 
and having these "inside" RegionServer just to get the regionname seems 
wasteful.
    In fact this will establish another request to the same regionserver again, 
if it wasn't in the cache.
    
    On the other hand I don't see an easy way to avoid this...
    Maybe the RegionServer itself could provide a facility to find a region it 
manages by table/row, but that different from how HBae operates normally... 
(for another jira)
    


- Lars


On 2011-10-17 22:37:43, Jonathan Gray wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/2410/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2011-10-17 22:37:43)
bq.  
bq.  
bq.  Review request for hbase, Dhruba Borthakur, Gary Helmling, Michael Stack, 
and Andrew Purtell.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Rather than a separate process, it can be advantageous in some situations 
for each RegionServer to embed their own ThriftServer. This allows each 
embedded ThriftServer to short-circuit any queries that should be executed on 
the local RS and skip the extra hop. This then enables the building of fat 
Thrift clients that cache region locations and avoid extra hops all together.
bq.  
bq.  
bq.  This addresses bug HBASE-4460.
bq.      https://issues.apache.org/jira/browse/HBASE-4460
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    /src/main/java/org/apache/hadoop/hbase/thrift/ThriftServer.java 1174376 
bq.    /src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java 
1174376 
bq.    
/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionThriftServer.java 
PRE-CREATION 
bq.  
bq.  Diff: https://reviews.apache.org/r/2410/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  Running this already on our hbase-92-based branch and running test site.
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Jonathan
bq.  
bq.


                
> Support running an embedded ThriftServer within a RegionServer
> --------------------------------------------------------------
>
>                 Key: HBASE-4460
>                 URL: https://issues.apache.org/jira/browse/HBASE-4460
>             Project: HBase
>          Issue Type: New Feature
>          Components: regionserver, thrift
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>         Attachments: HBASE-4460-v1.patch
>
>
> Rather than a separate process, it can be advantageous in some situations for 
> each RegionServer to embed their own ThriftServer.  This allows each embedded 
> ThriftServer to short-circuit any queries that should be executed on the 
> local RS and skip the extra hop.  This then enables the building of fat 
> Thrift clients that cache region locations and avoid extra hops all together.
> This JIRA is just about the embedded ThriftServer.  Will open others for the 
> rest.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to