HBASE-10330 TableInputFormat/TableRecordReaderImpl leaks HTable
This commit is contained in:
parent
bf827a0331
commit
e04009c989
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user