Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
In RpcEngine,
VersionedProtocol getProxy(Class<? extends VersionedProtocol> protocol, ...)
should be
<T extends VersionedProtocol> T getProxy(Class<T> protocol, ...)
Also, while removing casts I encountered a bug of the method HConnectionManager.HConnectionImplementation.getProtocol() using broken logic just like double-checked locking for HashMap.