YARN-9424. Change getDeclaredMethods to getMethods in FederationClientInterceptor#invokeConcurrent. Contributed by Shen Yinjie.

This commit is contained in:
Giovanni Matteo Fumarola 2019-04-23 19:58:41 -07:00
parent 9d400627c2
commit 3f2f4186f6

View File

@ -622,7 +622,7 @@ public Object call() throws Exception {
ApplicationClientProtocol protocol =
getClientRMProxyForSubCluster(subClusterId);
Method method = ApplicationClientProtocol.class
.getDeclaredMethod(request.getMethodName(), request.getTypes());
.getMethod(request.getMethodName(), request.getTypes());
return method.invoke(protocol, request.getParams());
}
});