SteNicholas commented on a change in pull request #13275: URL: https://github.com/apache/flink/pull/13275#discussion_r490069505
########## 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: @wuchong I thought that table isn't close in this method, therefore the connection should not be closed in this method. ---------------------------------------------------------------- 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: us...@infra.apache.org