hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: HTableFactory
Date Thu, 19 Jul 2012 17:36:46 GMT
In 0.94 HTablePool will only release the table when it has too many of
them, else it is just put back into the pool.

Is that not correct? What are you expecting instead?

Thx,

J-D

On Wed, Jul 18, 2012 at 5:45 PM, Andrew Whang <andrewgwhang@gmail.com> wrote:
> I'm reading into the implementation of HTablePool, and notice that the two
> argument constructor creates the default implementation of the
> HTableInterfaceFactory, called HTableFactory. When I look at the
> implementation of HTableFactory, the releaseHTableInterface() method
> invokes HTableInterface.close(), which, in the context of HTablePool,
> invokes HTablePool.returnTable(), which invokes
> HTableFactory.releaseHTableInterface(), which invokes
> HTablePool.returnTable(), and so on and so on.
>
> Am I missing something here? It seems the releaseHTableInterface method
> should not invoke HTableInterface.close.
>
> Andrew

Mime
View raw message