Skip to content
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

TiCDC may lose row changes during renaming table #43338

Closed
tangenta opened this issue Apr 24, 2023 · 0 comments · Fixed by #43341
Closed

TiCDC may lose row changes during renaming table #43338

tangenta opened this issue Apr 24, 2023 · 0 comments · Fixed by #43341

Comments

@tangenta
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Create a TiCDC changefeed like
[filter]
rulse = ["sysbench.sbtest1"]
  1. Execute the following command in upstream TiDB:
sysbench oltp_insert.lua --mysql-host=XXXX--mysql-port=XXXX --mysql-user=sysbench --mysql-password=XXXXX --mysql-db=sysbench --tables=1 --table_size=2000 --time=3600 --report-interval=5 --threads=1 prepare

sysbench oltp_insert.lua --mysql-host=XXXX--mysql-port=XXXX --mysql-user=sysbench --mysql-password=XXXXX --mysql-db=sysbench --tables=1 --table_size=2000 --time=3600 --report-interval=5 --threads=1 run
  1. Rename table on the fly:
RENAME TABLE `sbtest1` TO `sbtest99`;
  1. Wait for the sysbench failure.

2. What did you expect to see? (Required)

The row data is consistent between upstream and downstream.

3. What did you see instead (Required)

Several row records get lost in downstream TiDB.

4. What is your TiDB version? (Required)

96fa469

@tangenta tangenta added the type/bug The issue is confirmed as a bug. label Apr 24, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 labels Apr 24, 2023
@tangenta tangenta removed may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 labels Apr 24, 2023
@jebter jebter added the sig/sql-infra SIG: SQL Infra label May 15, 2023
@tangenta tangenta changed the title TiCDC may loss row changes during renaming table TiCDC may lose row changes during renaming table May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants