Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix][CDC] Fix jdbc connection leak for mysql #5037

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release-note.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- [Connector-v2] [File] Fix configuration file format and error comments (#4762)
- [Connector-v2] [Jdbc] Fix oracle sql table identifier (#4754)
- [Connector-v2] [Clickhouse] fix get clickhouse local table name with closing bracket from distributed table engineFull (#4710)
- [Connector-v2] [CDC] Fix jdbc connection leak for mysql (#5037)

### Zeta(ST-Engine)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
import java.util.Collections;
import java.util.Map;

import static org.apache.seatunnel.connectors.seatunnel.cdc.mysql.utils.MySqlConnectionUtils.createMySqlConnection;

@Slf4j
public class MySqlSnapshotFetchTask implements FetchTask<SourceSplitBase> {

Expand Down Expand Up @@ -158,7 +156,7 @@ private MySqlBinlogFetchTask.MySqlBinlogSplitReadTask createBackfillBinlogReadTa
return new MySqlBinlogFetchTask.MySqlBinlogSplitReadTask(
new MySqlConnectorConfig(dezConf),
mySqlOffsetContext,
createMySqlConnection(context.getSourceConfig().getDbzConfiguration()),
context.getConnection(),
context.getDispatcher(),
context.getErrorHandler(),
context.getTaskContext(),
Expand Down