HBASE-10330 TableInputFormat/TableRecordReaderImpl leaks HTable

This commit is contained in:
Ted Yu 2014-06-27 23:29:06 +00:00
parent bf827a0331
commit e04009c989
2 changed files with 10 additions and 0 deletions

View File

@ -155,6 +155,11 @@ public class TableRecordReaderImpl {
public void close() {
this.scanner.close();
try {
this.htable.close();
} catch (IOException ioe) {
LOG.warn("Error closing table", ioe);
}
}
/**

View File

@ -159,6 +159,11 @@ public class TableRecordReaderImpl {
*/
public void close() {
this.scanner.close();
try {
this.htable.close();
} catch (IOException ioe) {
LOG.warn("Error closing table", ioe);
}
}
/**