rionmonster commented on code in PR #235:
URL:
https://github.com/apache/flink-connector-jdbc/pull/235#discussion_r4065744871
##########
flink-connector-jdbc-core/src/main/java/org/apache/flink/connector/jdbc/core/datastream/source/reader/JdbcSourceSplitReader.java:
##########
@@ -222,9 +222,9 @@ public void wakeUp() {}
@Override
public void close() throws Exception {
closeResultSetAndStatement();
- if (connection != null && !connection.isClosed()) {
- connection.close();
- }
+ // The provider is this reader's own copy, so closing it here also
runs the teardown of a
Review Comment:
Thanks for the clarification @MartijnVisser! LGTM otherwise!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]