Xiqian Yu created FLINK-39372:
---------------------------------
Summary: Potential MySQL Binlog offset comparison failure after
mysql-bin.999999
Key: FLINK-39372
URL: https://issues.apache.org/jira/browse/FLINK-39372
Project: Flink
Issue Type: Improvement
Components: Flink CDC
Affects Versions: cdc-3.6.0
Reporter: Xiqian Yu
Assignee: Xiqian Yu
MySQL CDC uses Java's String.compareTo() for comparing Binlog filenames. This
works correctly for files like mysql.000001 through mysql.999999 since they
share the same length.
However, when the sequence rolls over to mysql.1000000, string comparison
breaks — it treats '1' < '9' and incorrectly considers mysql.1000000 smaller
than mysql.999999.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)