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
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 affects-6.3 affects-6.4 affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

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
@tangenta tangenta added severity/major affects-7.1 This bug affects the 7.1.x(LTS) versions. labels 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
@tangenta tangenta added affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 affects-6.3 affects-6.4 affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 labels Apr 27, 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
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.0 affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.2 affects-6.3 affects-6.4 affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-6.6 affects-7.0 affects-7.1 This bug affects the 7.1.x(LTS) versions. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants