Skip to content

Commit

Permalink
[FLINK-FLINK-36115][pipeline-connector][mysql] add scan.binlog.newly-…
Browse files Browse the repository at this point in the history
…added-table.enabled option to Allow to scan newly table during binlog reading stage.
  • Loading branch information
lvyanquan committed Aug 21, 2024
1 parent 7173b46 commit a0cbf7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public DataSource createDataSource(Context context) {
int connectMaxRetries = config.get(CONNECT_MAX_RETRIES);
int connectionPoolSize = config.get(CONNECTION_POOL_SIZE);
boolean scanNewlyAddedTableEnabled = config.get(SCAN_NEWLY_ADDED_TABLE_ENABLED);
boolean scanIncrementalNewlyAddedTableEnabled =
boolean scanBinlogNewlyAddedTableEnabled =
config.get(SCAN_BINLOG_NEWLY_ADDED_TABLE_ENABLED);

validateIntegerOption(SCAN_INCREMENTAL_SNAPSHOT_CHUNK_SIZE, splitSize, 1);
Expand Down Expand Up @@ -171,7 +171,7 @@ public DataSource createDataSource(Context context) {
.jdbcProperties(getJdbcProperties(configMap))
.scanNewlyAddedTableEnabled(scanNewlyAddedTableEnabled);

if (scanIncrementalNewlyAddedTableEnabled) {
if (scanBinlogNewlyAddedTableEnabled) {
String newTables = validateTableAndReturnDebeziumStyle(tables);
configFactory.tableList(newTables);
} else {
Expand Down

0 comments on commit a0cbf7c

Please sign in to comment.