HBASE-26174 Make rpc connection registry the default registry on 3.0.0 (#3600)
Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
This commit is contained in:
parent
c8d9d4df80
commit
28d81ae44f
|
@ -18,6 +18,7 @@
|
|||
package org.apache.hadoop.hbase.client;
|
||||
|
||||
import static org.apache.hadoop.hbase.HConstants.CLIENT_CONNECTION_REGISTRY_IMPL_CONF_KEY;
|
||||
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.hbase.util.ReflectionUtils;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
@ -35,8 +36,9 @@ final class ConnectionRegistryFactory {
|
|||
* @return The connection registry implementation to use.
|
||||
*/
|
||||
static ConnectionRegistry getRegistry(Configuration conf) {
|
||||
Class<? extends ConnectionRegistry> clazz = conf.getClass(
|
||||
CLIENT_CONNECTION_REGISTRY_IMPL_CONF_KEY, MasterRegistry.class, ConnectionRegistry.class);
|
||||
Class<? extends ConnectionRegistry> clazz =
|
||||
conf.getClass(CLIENT_CONNECTION_REGISTRY_IMPL_CONF_KEY, RpcConnectionRegistry.class,
|
||||
ConnectionRegistry.class);
|
||||
return ReflectionUtils.newInstance(clazz, conf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue