Revert "Should not use XXXService.Interface.class.getSimpleName as stub key prefix in AsyncConnectionImpl (#2443)"

This reverts commit 98225ff1a3.
This commit is contained in:
Duo Zhang 2020-09-23 14:37:27 +08:00
parent 98225ff1a3
commit 3ed41a0e45
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ class AsyncConnectionImpl implements AsyncConnection {
ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {
return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,
getStubKey(ClientService.getDescriptor().getName(), serverName, hostnameCanChange),
getStubKey(ClientService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
() -> createRegionServerStub(serverName));
}
@ -268,7 +268,7 @@ class AsyncConnectionImpl implements AsyncConnection {
AdminService.Interface getAdminStub(ServerName serverName) throws IOException {
return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,
getStubKey(AdminService.getDescriptor().getName(), serverName, hostnameCanChange),
getStubKey(AdminService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
() -> createAdminServerStub(serverName));
}