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

Reply via email to