Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

dm mariadb binlog parse timestamp panic #2281

@wentaojin

Description

@wentaojin

Is your feature request related to a problem? Please describe

mariadb v10.0.10 upgrade to v10.1.44

It is found that the precision of the column mariadb timestamp(3) is not recorded in the binlog, and DM parses it according to the default precision (4), which causes a panic. After google, it was found that it was a bug in mariadb,
https://jira.mariadb.org/browse/MDEV-5377. The bug was fixed after 10.1, but after testing, the binlog of the table that already existed before the upgrade from 10.1 still has this problem, and the table created after the upgrade has no problem.

Temporary Solution:
alter table changes TIMESTAMP(N), TIME(N), DATETIME(N) to the default precision
The newly installed version after mariadb 10.1, as the slave library of the original mariadb, DM synchronizes the slave library

Describe the feature you'd like

I hope that DM can be automatically processing and reduce manual upstream database operations. The parameters or table structure definition changes during the operation of the upstream database will be cautious.

Describe alternatives you've considered

No response

Teachability, Documentation, Adoption, Migration Strategy

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions