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

Data may loss when widen pk if pk is handle #3569

Closed
lidezhu opened this issue Dec 1, 2021 · 0 comments · Fixed by #3568
Closed

Data may loss when widen pk if pk is handle #3569

lidezhu opened this issue Dec 1, 2021 · 0 comments · Fixed by #3568

Comments

@lidezhu
Copy link
Contributor

lidezhu commented Dec 1, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. create table and wait until tiflash replica is ready.
mysql> create table test.t(a int primary key);
mysql> alter table test.t set tiflash replica 1;
mysql> insert into test.t values(1);
  1. disable background schema sync service using tiflash client
>> DBGInvoke __enable_schema_sync_service('false')
  1. widen pk
mysql> alter table test.t modify column a bigint;
mysql> insert into test.t values(9223372036854775807);
mysql> select /*+ read_from_storage(tiflash[t]) */ * from test.t;

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

+---------------------+
| a                   |
+---------------------+
|                   1 |
| 9223372036854775807 |
+---------------------+

3. What did you see instead (Required)

+---------------------+
| a                   |
+---------------------+
|                   1 |
|                  -1 |
+---------------------+

4. What is your TiFlash version? (Required)

latest master

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.

3 participants