You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2021/06/16 10:38:00 UTC

[jira] [Assigned] (HDFS-16073) Remove redundant RPC requests for getFileLinkInfo in ClientNamenodeProtocolTranslatorPB

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

Ayush Saxena reassigned HDFS-16073:
-----------------------------------

    Assignee: lei w

> Remove redundant RPC requests for getFileLinkInfo in ClientNamenodeProtocolTranslatorPB
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-16073
>                 URL: https://issues.apache.org/jira/browse/HDFS-16073
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: lei w
>            Assignee: lei w
>            Priority: Minor
>         Attachments: HDFS-16073.001.patch, HDFS-16073.patch
>
>
> Remove redundant RPC requests for getFileLinkInfo in ClientNamenodeProtocolTranslatorPB. The original logic is as follows:
> {code:java}
> @Override
> public HdfsFileStatus getFileLinkInfo(String src) throws IOException {
>   GetFileLinkInfoRequestProto req = GetFileLinkInfoRequestProto.newBuilder()
>       .setSrc(src).build();
>   try {
>     GetFileLinkInfoResponseProto result = rpcProxy.getFileLinkInfo(null, req);// First getFileLinkInfo RPC request
>     return result.hasFs() ?
>         PBHelperClient.convert(rpcProxy.getFileLinkInfo(null, req).getFs()) :// Repeated getFileLinkInfo RPC request
>         null;
>   } catch (ServiceException e) {
>     throw ProtobufHelper.getRemoteException(e);
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org