hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jitendra Nath Pandey (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-7965) Support for protocol version and signature in PB
Date Tue, 17 Jan 2012 09:24:39 GMT

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

Jitendra Nath Pandey updated HADOOP-7965:
-----------------------------------------

    Attachment: HADOOP-7965.trunk.combined.patch

The attached patch includes the hdfs changes as well, so that the impact on client side translators
in hdfs can be see along side the common changes.

Some details of the patch:
--------------------------   
  Clients only need an API to determine if a specific method is supported at the server. Therefore,
the patch provides a ProtocolInfoProtocol interface to be implemented by all the client-side
translators. This interface has only one method boolean isMethodSupported(String methodName).
   This method is implemented using a helper method in RpcClientUtil.java, which uses ProtocolInfoProtocolPB
proxy to connect to the server. ProtocolInfoProtocolPB has same interface as defined by ProtocolInfoProtocol.proto
which contains two rpc methods, getProtocolVersions and getProtocolSignatures.
   InvocationHandler implementations, RPC and RpcEngine have been modified so that RpcClientUtil
can re-use an underlying connection for ProtocolInfoProtocolPB proxy.
   At the server there is a server side translator for ProtocolInfoProtocol that looks up
the versions and protocols from the registry at the server. The server side translator doesn't
delegate these methods to the service implementations. This also means that getProtocolVersions
and getProtocolSignatures need not be implemented by namenode (or any service) anymore. 
                
> Support for protocol version and signature in PB
> ------------------------------------------------
>
>                 Key: HADOOP-7965
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7965
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Jitendra Nath Pandey
>            Assignee: Jitendra Nath Pandey
>         Attachments: HADOOP-7965.trunk.combined.patch
>
>
> VersionedProtocol methods are currently not supported in PB.

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

        

Mime
View raw message