[ 
https://issues.apache.org/jira/browse/FLINK-39372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiqian Yu resolved FLINK-39372.
-------------------------------
    Fix Version/s: cdc-3.7.0
       Resolution: Fixed

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: cdc-3.7.0
>
>
> 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)

Reply via email to