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

DM: data lost when upstream use binary as primary key #10672

Closed
GMHDBJD opened this issue Feb 28, 2024 · 0 comments · Fixed by #10685
Closed

DM: data lost when upstream use binary as primary key #10672

GMHDBJD opened this issue Feb 28, 2024 · 0 comments · Fixed by #10685
Labels
affects-5.3 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. affects-7.2 affects-7.3 affects-7.4 affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-7.6 area/dm Issues or PRs related to DM. severity/critical type/bug The issue is confirmed as a bug.

Comments

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Feb 28, 2024

What did you do?

create an incremental task, execute following queries in upstream

create table tb(a int, b binary(16) primary key);
insert into tb(a,b) values(1,0xBF500C00A2034521B819D6EB7065D200);
update tb set a=a+1 where b=0xBF500C00A2034521B819D6EB7065D200

What did you expect to see?

mysql> select * from tb;
+------+------------------------------------+
| a    | b                                  |
+------+------------------------------------+
|    2 | 0xBF500C00A2034521B819D6EB7065D200 |
+------+------------------------------------+

What did you see instead?

mysql> select * from tb;
+------+------------------------------------+
| a    | b                                  |
+------+------------------------------------+
|    1 | 0xBF500C00A2034521B819D6EB7065D200 |
+------+------------------------------------+

Versions of the cluster

DM version (run dmctl -V or dm-worker -V or dm-master -V):

(paste DM version here, and you must ensure versions of dmctl, DM-worker and DM-master are same)

Upstream MySQL/MariaDB server version:

(paste upstream MySQL/MariaDB server version here)

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

(paste TiDB cluster version here)

How did you deploy DM: tiup or manually?

(leave TiUP or manually here)

Other interesting information (system version, hardware config, etc):

>
>

current status of DM cluster (execute query-status <task-name> in dmctl)

(paste current status of DM cluster here)
@ti-chi-bot ti-chi-bot bot closed this as completed in 47376d0 Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.3 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. affects-7.2 affects-7.3 affects-7.4 affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-7.6 area/dm Issues or PRs related to DM. severity/critical type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant