hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8471) Server-side, remove convertion from pb type to client type before we call method
Date Thu, 02 May 2013 22:16:16 GMT

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

Andrew Purtell commented on HBASE-8471:
---------------------------------------

I don't know of an existing use case that manipulates a Result or the list of Results in a
CP hook, but to afford that possibility is why those hooks take that argument. Substituting
PB objects for POJOs will be fine as long as they can be manipulated within the hook to change
what is being passed back to the client.
                
> Server-side, remove convertion from pb type to client type before we call method
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-8471
>                 URL: https://issues.apache.org/jira/browse/HBASE-8471
>             Project: HBase
>          Issue Type: Improvement
>          Components: IPC/RPC, regionserver
>            Reporter: stack
>
> In the regionserver, when the rpc receives a call, the call is described using protobufs.
 Before we make the server-side invocation, we do a transform on the pb param objects to make
a native pojo -- e.g. from a pb Puts into an hbase o.a.h.h.client.Put -- and only then do
we make the call against the server.
> On the way out, similar, before putting the result on the wire, we will do a convertion
from o.a.h.h.client.Result into pb Result.
> This issue is about our first INVESTIGATING if it is possible to do away w/ this marshalling/unmarshalling
serverside especially given the pb objects themselves are rich in accessor and getters, etc.
 If it is possible to do w/ pbs alone serverside, then we should go ahead and rip out all
the serverside convertions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message