I think one potential issue would be a missing call to flushCommits() in
putTable().
Take a look at the example below:
try {
table = this.pool.getTable(tableName);
table.put(puts);
this.metrics.appliedOpsRate.inc(puts.size());
} finally {
if (table != null) {
this.pool.putTable(table);
}
}
On Wed, Apr 6, 2011 at 7:44 PM, Ted Yu <[email protected]> wrote:
> 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 <[email protected]> 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
>>
>
>