linguoxuan opened a new pull request, #4364: URL: https://github.com/apache/flink-cdc/pull/4364
## Purpose During the snapshot split reading phase, `initStatement()` sets `autoCommit` to `false` on the JDBC connection to enable cursor-based result set fetching. However, after the split read completes, the transaction is never committed and `autoCommit` is never restored to `true`. This may lead to idle transactions leak. ## Change Added a `finally` block in `createDataEventsForTable()` of `Db2ScanFetchTask`, `OracleScanFetchTask`, `PostgresScanFetchTask`, and `SqlServerScanFetchTask` to restore `autoCommit` to `true` after each snapshot split read. -- 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]
