Skip to content

TiCDC example include wrong values  #19006

Closed
@choudharypankaj

Description

@choudharypankaj

File: /release-8.1/ticdc/ticdc-open-protocol.md

INSERT INTO test.t1(id, val) VALUES (1, 'aa');
INSERT INTO test.t1(id, val) VALUES (2, 'aa')

From the following Log 5 and Log 6, you can see that Row Changed Events on the same table might be sent to different partitions based on the primary key, but changes to the same row are sent to the same partition so that the downstream can easily process the Event concurrently.

The corresponding output is wrong:
5. [partition=0] [key="{"ts":415508878783938562,"scm":"test","tbl":"t1","t":1}"] [value="{"u":{"id":{"t":3,"h":true,"v":1},"val":{"t":15,"v":"YWE="}}}"]
6. [partition=1] [key="{"ts":415508878783938562,"scm":"test","tbl":"t1","t":1}"] [value="{"u":{"id":{"t":3,"h":true,"v":2},"val":{"t":15,"v":"YmI="}}}"]

and so are the remaining output values

Metadata

Metadata

Assignees

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