You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jitendra Nath Pandey (Updated) (JIRA)" <ji...@apache.org> on 2012/01/17 10:24:39 UTC

[jira] [Updated] (HADOOP-7965) Support for protocol version and signature in PB

     [ 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