Details
Description
Creating a HtablePool can issue two behaviour depanding on the constructor called.
Case 1: loads the configs from hbase-site
public HTablePool()
Calling this with null values for Configuration:
public HTablePool(final Configuration config, final int maxSize)
will issue:
public HTablePool(final Configuration config, final int maxSize,
final HTableInterfaceFactory tableFactory, PoolType poolType) {
// Make a new configuration instance so I can safely cleanup when
// done with the pool.
this.config = config == null ? new Configuration() : config;
which does not read the hbase-site config files as HBaseConfiguration.create() does.
I've tracked this problem to all versions of hbase.