Should not use XXXService.Interface.class.getSimpleName as stub key prefix in AsyncConnectionImpl (#2443)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
e7797208d6
commit
98225ff1a3
@ -254,7 +254,7 @@ class AsyncConnectionImpl implements AsyncConnection {
|
|||||||
|
|
||||||
ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {
|
ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {
|
||||||
return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,
|
return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,
|
||||||
getStubKey(ClientService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
|
getStubKey(ClientService.getDescriptor().getName(), serverName, hostnameCanChange),
|
||||||
() -> createRegionServerStub(serverName));
|
() -> createRegionServerStub(serverName));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ class AsyncConnectionImpl implements AsyncConnection {
|
|||||||
|
|
||||||
AdminService.Interface getAdminStub(ServerName serverName) throws IOException {
|
AdminService.Interface getAdminStub(ServerName serverName) throws IOException {
|
||||||
return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,
|
return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,
|
||||||
getStubKey(AdminService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
|
getStubKey(AdminService.getDescriptor().getName(), serverName, hostnameCanChange),
|
||||||
() -> createAdminServerStub(serverName));
|
() -> createAdminServerStub(serverName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user