@@ -823,7 +823,7 @@ <T> T invokeAtAvailableNsAsync(RemoteMethod method, Class<T> clazz)
823
823
asyncComplete (null );
824
824
if (!nsId .isEmpty ()) {
825
825
asyncTry (() -> {
826
- rpcClient .invokeSingle (nsId , method , clazz );
826
+ getRPCClient () .invokeSingle (nsId , method , clazz );
827
827
});
828
828
829
829
asyncCatch ((AsyncCatchFunction <T , IOException >)(res , ioe ) -> {
@@ -898,7 +898,7 @@ <T> T invokeOnNsAsync(RemoteMethod method, Class<T> clazz, IOException ioe,
898
898
String nsId = fnInfo .getNameserviceId ();
899
899
LOG .debug ("Invoking {} on namespace {}" , method , nsId );
900
900
asyncTry (() -> {
901
- rpcClient .invokeSingle (nsId , method , clazz );
901
+ getRPCClient () .invokeSingle (nsId , method , clazz );
902
902
asyncApply (result -> {
903
903
if (result != null && isExpectedClass (clazz , result )) {
904
904
foreach .breakNow ();
@@ -1092,7 +1092,7 @@ private RemoteLocation getExistingLocationAsync(String src,
1092
1092
List <RemoteLocation > locations ) throws IOException {
1093
1093
RemoteMethod method = new RemoteMethod ("getFileInfo" ,
1094
1094
new Class <?>[] {String .class }, new RemoteParam ());
1095
- rpcClient .invokeConcurrent (
1095
+ getRPCClient () .invokeConcurrent (
1096
1096
locations , method , true , false , HdfsFileStatus .class );
1097
1097
asyncApply ((ApplyFunction <Map <RemoteLocation , HdfsFileStatus >, Object >) results -> {
1098
1098
for (RemoteLocation loc : locations ) {
@@ -1378,7 +1378,7 @@ public DatanodeInfo[] getDatanodeReportAsync(
1378
1378
new Class <?>[] {DatanodeReportType .class }, type );
1379
1379
1380
1380
Set <FederationNamespaceInfo > nss = namenodeResolver .getNamespaces ();
1381
- rpcClient .invokeConcurrent (nss , method , requireResponse , false ,
1381
+ getRPCClient () .invokeConcurrent (nss , method , requireResponse , false ,
1382
1382
timeOutMs , DatanodeInfo [].class );
1383
1383
1384
1384
asyncApply ((ApplyFunction <Map <FederationNamespaceInfo , DatanodeInfo []>,
@@ -1460,7 +1460,7 @@ public Map<String, DatanodeStorageReport[]> getDatanodeStorageReportMapAsync(
1460
1460
RemoteMethod method = new RemoteMethod ("getDatanodeStorageReport" ,
1461
1461
new Class <?>[] {DatanodeReportType .class }, type );
1462
1462
Set <FederationNamespaceInfo > nss = namenodeResolver .getNamespaces ();
1463
- rpcClient .invokeConcurrent (
1463
+ getRPCClient () .invokeConcurrent (
1464
1464
nss , method , requireResponse , false , timeOutMs , DatanodeStorageReport [].class );
1465
1465
1466
1466
asyncApply ((ApplyFunction <Map <FederationNamespaceInfo , DatanodeStorageReport []>,
@@ -2309,7 +2309,7 @@ public DatanodeInfo[] getSlowDatanodeReportAsync(boolean requireResponse, long t
2309
2309
RemoteMethod method = new RemoteMethod ("getSlowDatanodeReport" );
2310
2310
2311
2311
Set <FederationNamespaceInfo > nss = namenodeResolver .getNamespaces ();
2312
- rpcClient .invokeConcurrent (nss , method , requireResponse , false ,
2312
+ getRPCClient () .invokeConcurrent (nss , method , requireResponse , false ,
2313
2313
timeOutMs , DatanodeInfo [].class );
2314
2314
2315
2315
asyncApply ((ApplyFunction <Map <FederationNamespaceInfo , DatanodeInfo []>,
0 commit comments