HDFS-15839. RBF: Cannot get method setBalancerBandwidth on Router Client. Contributed by Yang Yun.

Only Prod Changes: Test already cherry-picked as part of HDFS-16310 via (496657c63f)
This commit is contained in:
Ayush Saxena 2021-02-20 19:34:29 +05:30
parent 0ff544951a
commit df4e59318f
No known key found for this signature in database
GPG Key ID: D09AE71061AB564D

View File

@ -1179,7 +1179,7 @@ public void setBalancerBandwidth(long bandwidth) throws IOException {
rpcServer.checkOperation(NameNode.OperationCategory.UNCHECKED);
RemoteMethod method = new RemoteMethod("setBalancerBandwidth",
new Class<?>[] {Long.class}, bandwidth);
new Class<?>[] {long.class}, bandwidth);
final Set<FederationNamespaceInfo> nss = namenodeResolver.getNamespaces();
rpcClient.invokeConcurrent(nss, method, true, false);
}