Skip to content

[Bug] MySQL CDC: Data truncation: data out of range: data type int64(值在 int64 范围内但被拒绝) #26740

Closed

Description

@Ariznawlll

环境

Field Value
环境 128 单机 (4.2-dev)
Commit c8dae1d45
Run https://github.com/matrixorigin/mo-nightly-regression/actions/runs/31030335352/job/92395652075

问题

MySQL CDC MO 测试失败,t_numeric_types 表插入数据时报 Data truncation: data out of range: data type int64,但值实际上在 int64 范围内。

错误示例

Data truncation: data out of range: data type int64, value -4442394250925975887
Data truncation: data out of range: data type int64, value -2070639712809318947
Data truncation: data out of range: data type int64, value -279414026695613433
Data truncation: data out of range: data type int64, value -8205651242190584415
Data truncation: data out of range: data type int64, value -8527322645238722166
Data truncation: data out of range: data type int64, value -6909641178830734757
Data truncation: data out of range: data type int64, value -2671127566035576297
Data truncation: data out of range: data type int64, value -4812980145392550104
Data truncation: data out of range: data type int64, value -160613384159911941
Data truncation: data out of range: data type int64, value -5391144425835343407
Data truncation: data out of range: data type int64, value -1428716184634857422

int64 范围: -9223372036854775808 ~ 9223372036854775807

所有报错的值都在 int64 范围内,但 MO 拒绝插入,报 data out of range。

影响

  • CDC pipeline 多次 retry 失败后跳过这些行
  • Flink checkpoint 因持续失败而超时:Exceeded checkpoint tolerable failure threshold. The latest checkpoint failed due to Checkpoint expired before completing.
  • 最终 job 失败,exit code 1

可能原因

  1. MO int64 类型校验逻辑错误 — 错误地拒绝了合法的 int64 值
  2. CDC 工具发送的数据格式不对 — 可能发送的是字符串或其他类型,MO 解析时出错
  3. 数据类型映射问题 — MySQL 的 BIGINT 映射到 MO 的 int64 时出了问题

Activity

  1. added
    kind/bug
    on Aug 6, 2026
  2. added theissue type on Aug 6, 2026
  3. added this to the MO-202608 milestone on Aug 6, 2026
  4. added a commit that references this issue on Aug 9, 2026
    9a8fe0e
  5. Ariznawlll commented on Aug 10, 2026

    @Ariznawlll
    CollaboratorAuthor

    verified

  6. added 3 commits that reference this issue on Sep 17, 2026
    8c8e929
    4a2df6b
    3f30a7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions