You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2020/09/23 06:42:40 UTC
[hbase] branch branch-2.2 updated: HBASE-25073 Should not use
XXXService.Interface.class.getSimpleName as stub key prefix in
AsyncConnectionImpl (#2443)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new cdcf66e HBASE-25073 Should not use XXXService.Interface.class.getSimpleName as stub key prefix in AsyncConnectionImpl (#2443)
cdcf66e is described below
commit cdcf66e5b3168ee27eb933c8b4f1637bcd72f6bf
Author: 王伟 <ww...@sina.com>
AuthorDate: Wed Sep 23 14:36:00 2020 +0800
HBASE-25073 Should not use XXXService.Interface.class.getSimpleName as stub key prefix in AsyncConnectionImpl (#2443)
Signed-off-by: Duo Zhang <zh...@apache.org>
---
.../main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java
index b4b8c65..5a9ebf0 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java
@@ -240,7 +240,7 @@ class AsyncConnectionImpl implements AsyncConnection {
ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {
return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,
- getStubKey(ClientService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
+ getStubKey(ClientService.getDescriptor().getName(), serverName, hostnameCanChange),
() -> createRegionServerStub(serverName));
}
@@ -254,7 +254,7 @@ class AsyncConnectionImpl implements AsyncConnection {
AdminService.Interface getAdminStub(ServerName serverName) throws IOException {
return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,
- getStubKey(AdminService.Interface.class.getSimpleName(), serverName, hostnameCanChange),
+ getStubKey(AdminService.getDescriptor().getName(), serverName, hostnameCanChange),
() -> createAdminServerStub(serverName));
}