ruanhang1993 commented on code in PR #3415: URL: https://github.com/apache/flink-cdc/pull/3415#discussion_r1778161501
########## flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/debezium/task/MySqlSnapshotSplitReadTask.java: ########## @@ -187,6 +192,9 @@ protected SnapshotResult<MySqlOffsetContext> doExecute( } else { // Get the current binlog offset as HW highWatermark = DebeziumUtils.currentBinlogOffset(jdbcConnection); + long epochSecond = clock.currentTime().getEpochSecond(); + highWatermark.getOffset().put(BinlogOffset.TIMESTAMP_KEY, String.valueOf(epochSecond)); + highWatermark.getOffset().put(BinlogOffset.SERVER_ID_KEY, String.valueOf(epochSecond)); Review Comment: Why do we need to add the server-id here? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org