-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sink data to mysql5.7, the data is inconsistent #1585
Comments
|
Since the Besides TiCDC does not provide a Such as
We should also add some FAQ about this problem, since user could meet and feel confused.
|
@jebter PTAL, IMHO this is not a bug and maybe the |
Failed config:
Passed config:
|
The root cause is: |
i try this in tidb:
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1.1
tiup cluster deploy tidb-38 v4.0.11 topo.yaml --user ubuntu -i cykey.pem
tiup cluster start tidb-38
tiup cluster patch tidb-38 ./cdc-nightly.tar.gz -N xx.xx.xx.xx:8300
1.2
tiup ctl:nightly cdc changefeed create --pd="http://xx.xx.xx.xx:2379" --changefeed-id test-cdc-38 --sink-uri="mysql://[email protected]:3306"
1.3
./runSQL.sh props.mysql sql.mysql/tableCreates.sql && ./runSQL.sh props.mysql
./runLoader.sh props.mysql
1.4
./bin/sync_diff_inspector --config=./config.toml
What did you expect to see?
the sync_diff_inspector shows that the data is consistent
What did you see instead?
[2021/03/30 10:57:03.280 +00:00] [WARN] [diff.go:893] ["find different row"] [column=ol_delivery_d] [row1="{ ol_supply_w_id: 1, ol_delivery_d: 2021-03-30 07:02:32, ol_amount: 9283.38, ol_o_id: 2182, ol_number: 7, ol_i_id: 7762, ol_quantity: 5, ol_dist_info: AyhG99XdFJ3HbhRBjtFhM5PU, ol_w_id: 1, ol_d_id: 4, }"] [row2="{ ol_o_id: 2182, ol_i_id: 7762, ol_delivery_d: IsNull, ol_quantity: 5, ol_supply_w_id: 1, ol_dist_info: AyhG99XdFJ3HbhRBjtFhM5PU, ol_w_id: 1, ol_d_id: 4, ol_number: 7, ol_amount: 9283.38, }"]
[2021/03/30 10:57:03.280 +00:00] [WARN] [diff.go:893] ["find different row"] [column=ol_delivery_d] [row1="{ ol_o_id: 2538, ol_number: 3, ol_i_id: 12445, ol_supply_w_id: 1, ol_quantity: 5, ol_w_id: 1, ol_d_id: 1, ol_delivery_d: 2021-03-30 07:01:53, ol_amount: 512.30, ol_dist_info: lCs1KXiiBwi4SswcrjCkD7tH, }"] [row2="{ ol_number: 3, ol_delivery_d: IsNull
cdc.log
, ol_amount: 512.30, ol_d_id: 1, ol_o_id: 2538, ol_supply_w_id: 1, ol_quantity: 5, ol_dist_info: lCs1KXiiBwi4SswcrjCkD7tH, ol_w_id: 1, ol_i_id: 12445, }"]
[2021/03/30 10:57:03.280 +00:00] [INFO] [diff.go:730] ["[update]"] [sql="REPLACE INTO
tpcc
.bmsql_order_line
(ol_w_id
,ol_d_id
,ol_o_id
,ol_number
,ol_i_id
,ol_delivery_d
,ol_amount
,ol_supply_w_id
,ol_quantity
,ol_dist_info
) VALUES (1,1,2538,3,12445,'2021-03-30 07:01:53',512.30,1,5,'lCs1KXiiBwi4SswcrjCkD7tH');"]Versions of the cluster
4.0.11
TiCDC version (execute
cdc version
):Release Version: v5.0.0-master
Git Commit Hash: adcc9c6
Git Branch: heads/refs/tags/v5.0.0-nightly
UTC Build Time: 2021-03-27 16:50:21
cdc.log
Go Version: go version go1.13 linux/amd64
The text was updated successfully, but these errors were encountered: