This has been fixed in TRUNK. See http://zhihongyu.blogspot.com/2011/04/managing-connections-in-hbase-090-and.html
On Mon, Jun 20, 2011 at 2:05 AM, Qing Yan <[email protected]> wrote: > Hello, > Currently HConnectionManager hold a LRU cache of hbase connections > with max cache size set to 31(hard coded!). I am confused: > > 1) what is the reason to use LRU cache? It is error prone. if I > create more than 31 connection, old connection get silently discarded, > in the meantime deleteConnection(oldConnection) reports no error , it > is just not found in cache and no cleanup code will be executed.I > observed tons of ZK connection leakings this way, client is totally > unaware.. > > 2) Can you make the cache size configurable so that it can be set > to a large value and effectively disable the LRU? > > Thanks >
