[
https://issues.apache.org/jira/browse/FLINK-31015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-31015:
-----------------------------------
Labels: pull-request-available (was: )
> SplitReader doesn't extend AutoCloseable but implements close
> -------------------------------------------------------------
>
> Key: FLINK-31015
> URL: https://issues.apache.org/jira/browse/FLINK-31015
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / Common
> Affects Versions: 1.17.0, 1.16.1, 1.18.0
> Reporter: Matthias Pohl
> Assignee: Ran Tao
> Priority: Major
> Labels: pull-request-available
>
> The {{SplitReader}} provides a {{close}} method (see
> [SplitReader:71|https://github.com/apache/flink/blob/0612a997ddcc791ee54f500fbf1299ce04987679/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/splitreader/SplitReader.java#L71])
> but doesn't implement {{AutoCloseable}}. This would enable us to utilize
> Java's try close feature and use more generic utility classes.
> This issue should not only cover the {{SplitReader}} but also solve this kind
> of problem also in other places of the connector framework (I didn't check
> whether it also occurs somewhere else).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)