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

Some data may be replicated to downstream if table becomes ineligible after DDL #743

Closed
amyangfei opened this issue Jul 14, 2020 · 0 comments
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. difficulty/hard Hard task. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug.

Comments

@amyangfei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

  2. setup a cdc cluster, and start a changefeed

  3. in upstream, execute create table t2 (id int primary key);insert into t2 values (1),(2);, everything is normal

  4. in upstream, execute alter table t2 drop primary key; insert into t2 values (3),(4);

  5. What did you expect to see?

The replication of table t2 will be paused and no more data is replicated

  1. What did you see instead?
t> select * from t2;
+----+
| id |
+----+
| 1  |
| 2  |
| 3  |
| 4  |
+----+
4 rows in set

> show create table t2;
+-------+-------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                |
+-------+-------------------------------------------------------------------------------------------------------------+
| t2    | CREATE TABLE `t2` (\n  `id` int(11) NOT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+-------------------------------------------------------------------------------------------------------------+
1 row in set
  1. Versions of the cluster

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

      Release Version: v4.0.0
      
    • TiCDC version (execute cdc version):

      Release Version: v4.0.2-32-ga3d9c7e
      Git Commit Hash: a3d9c7e5cc35ef57afa338f74edeea80ae4dbd59
      Git Branch: master
      UTC Build Time: 2020-07-14 08:00:04
      Go Version: go version go1.14.4 linux/amd64
      
@amyangfei amyangfei added type/bug The issue is confirmed as a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 14, 2020
@zier-one zier-one self-assigned this Jul 15, 2020
@amyangfei amyangfei added the difficulty/hard Hard task. label Jul 29, 2020
@AkiraXie AkiraXie added the area/ticdc Issues or PRs related to TiCDC. label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. difficulty/hard Hard task. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants