SteNicholas commented on a change in pull request #13275:
URL: https://github.com/apache/flink/pull/13275#discussion_r485337684
##########
File path:
flink-connectors/flink-connector-hbase/src/main/java/org/apache/flink/connector/hbase/source/AbstractTableInputFormat.java
##########
@@ -186,24 +193,22 @@ public void close() throws IOException {
if (resultScanner != null) {
resultScanner.close();
}
- } finally {
- resultScanner = null;
- }
- }
-
- @Override
- public void closeInputFormat() throws IOException {
- try {
if (table != null) {
table.close();
}
+ if (connection != null) {
+ connection.close();
+ }
} finally {
+ resultScanner = null;
table = null;
+ connection = null;
}
}
@Override
public TableInputSplit[] createInputSplits(final int minNumSplits)
throws IOException {
+ initTable();
Review comment:
> This is never closed ?
@wuchong This is closed when calling `close` method. I thought that in the
lifecycle, `createInputSplits` would be called before `close`. Therefore, I
didn't close the connection and table.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]