stevenzwu commented on a change in pull request #13784:
URL: https://github.com/apache/flink/pull/13784#discussion_r512299554
##########
File path:
flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/splitreader/SplitReader.java
##########
@@ -57,4 +57,11 @@
* {@link #fetch()}.
*/
void wakeUp();
+
+ /**
+ * Close the split reader.
+ *
+ * @throws Exception if closing the split reader failed.
+ */
+ default void close() throws Exception {}
Review comment:
I was about to ask for this :) otherwise, we may have resource/file leak
for unclosed files in Iceberg source.
----------------------------------------------------------------
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]