ningsiyuan1024 opened a new pull request, #277: URL: https://github.com/apache/flink-connector-jdbc/pull/277
## Why When the at-least-once JDBC writer opens a connection and statement preparation fails, construction exits before the operator owns the writer. Restarts can leave one open connection per attempt. See [FLINK-41793](https://issues.apache.org/jira/browse/FLINK-41793). ## What changed Close the partially opened output format on the failed at-least-once path. Retain the original exception and attach a cleanup exception as suppressed if necessary. ## Verification The regression holds the Derby connection, attempts to construct a writer for a missing table, checks the opening error and observes whether the same connection is closed. Local Maven verification is pending. Generated-by: OpenAI Codex -- 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]
