HBASE-26008 Fix typo in AsyncConnectionImpl (#3391)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
555f8b461f
commit
7466e08aec
|
@ -103,7 +103,8 @@ class AsyncConnectionImpl implements AsyncConnection {
|
||||||
private final NonceGenerator nonceGenerator;
|
private final NonceGenerator nonceGenerator;
|
||||||
|
|
||||||
private final ConcurrentMap<String, ClientService.Interface> rsStubs = new ConcurrentHashMap<>();
|
private final ConcurrentMap<String, ClientService.Interface> rsStubs = new ConcurrentHashMap<>();
|
||||||
private final ConcurrentMap<String, AdminService.Interface> adminSubs = new ConcurrentHashMap<>();
|
private final ConcurrentMap<String, AdminService.Interface> adminStubs =
|
||||||
|
new ConcurrentHashMap<>();
|
||||||
|
|
||||||
private final AtomicReference<MasterService.Interface> masterStub = new AtomicReference<>();
|
private final AtomicReference<MasterService.Interface> masterStub = new AtomicReference<>();
|
||||||
|
|
||||||
|
@ -283,7 +284,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(adminStubs,
|
||||||
getStubKey(AdminService.getDescriptor().getName(), serverName),
|
getStubKey(AdminService.getDescriptor().getName(), serverName),
|
||||||
() -> createAdminServerStub(serverName));
|
() -> createAdminServerStub(serverName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue