You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Daniel Iancu <da...@1and1.ro> on 2012/11/02 15:38:20 UTC

Re: using 0.92.1 HbasePool - java.io.IOException: org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@413d26d2 closed

>
> 3. if pool is out:
> I get a normal Htable instance, because HTablePool.getTable will call
> findOrCreateTable(), once there is not table available, it creates a
> HbaseTable instance instead of PooledHbase instance in this case, once I am
> done with query, I call Htable.close(), it will just release Htable
> instance and close the associated connections. which makes good sense.
You always get a PooledHTable from the pool. But when you close it, if 
the pool is already full the HTable is not returned but closed instead. 
HTable close will call HConnection close() which really close itself 
only if it detects that it is  no longer in use by clients. So 
apparently there is no problem with the implementation. Try to use a 
value high enough for the pool size to avoid the creation/closing of 
extra HTables which is bad for performance anyway.