Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanhang1993 committed Aug 3, 2022
1 parent 118fdf2 commit 5415bcf
Show file tree
Hide file tree
Showing 4 changed files with 744 additions and 116 deletions.
Expand Up @@ -67,8 +67,7 @@ public void validate() {
} else {
// for the legacy source
connection =
DebeziumUtils.createMySqlConnection(
from(dbzProperties), sourceConfig.getJdbcProperties());
DebeziumUtils.createMySqlConnection(from(dbzProperties), new Properties());
}
checkVersion(connection);
checkBinlogFormat(connection);
Expand Down
Expand Up @@ -24,7 +24,6 @@
import com.ververica.cdc.connectors.mysql.source.offset.BinlogOffset;
import io.debezium.config.Configuration;
import io.debezium.connector.mysql.MySqlConnection;
import io.debezium.connector.mysql.MySqlConnectionWithJdbcProperties;
import io.debezium.connector.mysql.MySqlConnectorConfig;
import io.debezium.connector.mysql.MySqlDatabaseSchema;
import io.debezium.connector.mysql.MySqlSystemVariables;
Expand Down Expand Up @@ -76,9 +75,8 @@ public static MySqlConnection createMySqlConnection(MySqlSourceConfig sourceConf
/** Creates a new {@link MySqlConnection}, but not open the connection. */
public static MySqlConnection createMySqlConnection(
Configuration dbzConfiguration, Properties jdbcProperties) {
return new MySqlConnectionWithJdbcProperties(
new MySqlConnectionWithJdbcProperties.MySqlConnectionConfigurationWithCustomUrl(
dbzConfiguration, jdbcProperties));
return new MySqlConnection(
new MySqlConnection.MySqlConnectionConfiguration(dbzConfiguration, jdbcProperties));
}

/** Creates a new {@link BinaryLogClient} for consuming mysql binlog. */
Expand Down

0 comments on commit 5415bcf

Please sign in to comment.