hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: HTablePool not using release
Date Thu, 07 Apr 2011 02:44:26 GMT
The current behavior was intentional. See javadoc of closeTablePool():

   * Note: this is a 'shutdown' of the given table pool and different from
   * {@link #putTable(HTableInterface)}, that is used to return the table
   * instance to the pool for future re-use.
because releaseHTableInterface() calls
      table.close();

On Tue, Apr 5, 2011 at 3:22 AM, Lars George <lars.george@gmail.com> wrote:

> Hi,
>
> I am wondering, shouldn't the putTable() also call
> releaseHTableInterface on the discarded HTable instances, just like
> the closeTablePool() does on the retaining instances?
>
> Lars
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message