Skip to content

codec(ticdc): wrong serialized value for avro codec when there are multiple decimals with different precision/scale #5554

Closed
@zhangyangyu

Description

What did you do?

Just as title said. You could use TPC-C test to reproduce. For TPC-C customer table, the c_discount value is always out-of-sync for source and sink.

This raises from bug in goavro, see linkedin/goavro#195.

What did you expect to see?

decimals values are same in source and sink.

What did you see instead?

decimals values are different in source and sink.

Versions of the cluster

Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

Upstream TiKV version (execute tikv-server --version):

(paste TiKV version here)

TiCDC version (execute cdc version):

(paste TiCDC version here)

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.area/ticdcIssues or PRs related to TiCDC.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions