HDFS-16073. Remove redundant RPC requests for getFileLinkInfo in ClientNamenodeProtocolTranslatorPB. Contributed by lei w.
This commit is contained in:
parent
57ee4238eb
commit
3e03ecd680
|
@ -994,9 +994,7 @@ public class ClientNamenodeProtocolTranslatorPB implements
|
||||||
.setSrc(src).build();
|
.setSrc(src).build();
|
||||||
try {
|
try {
|
||||||
GetFileLinkInfoResponseProto result = rpcProxy.getFileLinkInfo(null, req);
|
GetFileLinkInfoResponseProto result = rpcProxy.getFileLinkInfo(null, req);
|
||||||
return result.hasFs() ?
|
return result.hasFs() ? PBHelperClient.convert(result.getFs()) : null;
|
||||||
PBHelperClient.convert(rpcProxy.getFileLinkInfo(null, req).getFs()) :
|
|
||||||
null;
|
|
||||||
} catch (ServiceException e) {
|
} catch (ServiceException e) {
|
||||||
throw ProtobufHelper.getRemoteException(e);
|
throw ProtobufHelper.getRemoteException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue