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

Failed to read auto-increment value from storage engine #22592

Closed
aytrack opened this issue Jan 28, 2021 · 4 comments
Closed

Failed to read auto-increment value from storage engine #22592

aytrack opened this issue Jan 28, 2021 · 4 comments
Labels
duplicate Issues or pull requests already exists. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@aytrack
Copy link
Contributor

aytrack commented Jan 28, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE UK_5046 (COL1 BIGINT(46) AUTO_INCREMENT COMMENT 'AUTO INCREMENT FOR UK',COL2 VARCHAR(20),COL3 DATETIME,COL4 BIGINT,COL5 FLOAT,UNIQUE KEY UK_COL1(COL1)) AUTO_INCREMENT = 1000;
insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(-9223372036854775808,"瀫飾鸂驻浅鞯敦洁姴餶鄾倣ľ膉椋鵣韵璄謈塱","0880\-04\-15\ 14:51:47",5324810252090160585,6.71788281780488e+37);
insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(9223372036854775807,"羟劗屸鲫橲轧鮌溝觳望煃冨勒Q駝昫Ķ鱭帶盆","4419\-05\-13\ 16:46:35",-8255166187230039281,3.2907630702134185e+38);
insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(-8100164477646717705,"礠崍鮐鏆裲忈幼洽鋁歊詶讖尌杩鲸蛧璡翃腀羜","0336\-10\-26\ 09:08:32",-5161287593627465637,1.2373522472022954e+38);
insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(100,"礠崍鮐鏆裲忈幼洽鋁歊詶讖尌杩鲸蛧璡翃腀羜","0336\-10\-26\ 09:08:32",-5161287593627465637,1.2373522472022954e+38);

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

all data insert successfully

3. What did you see instead (Required)

mysql test> insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(-9223372036854775808,"瀫飾鸂驻浅鞯敦洁姴餶鄾倣ľ膉椋鵣韵璄謈塱","0880\-04\-15\ 14:51:47",5324810252090160585,6.71788281
                          ->  780488e+37);
Query OK, 1 row affected
Time: 0.303s
mysql test> insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(9223372036854775807,"羟劗屸鲫橲轧鮌溝觳望煃冨勒Q駝昫Ķ鱭帶盆","4419\-05\-13\ 16:46:35",-8255166187230039281,3.290763070
                          ->  2134185e+38);
(1467, 'Failed to read auto-increment value from storage engine')
mysql test> insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(-8100164477646717705,"礠崍鮐鏆裲忈幼洽鋁歊詶讖尌杩鲸蛧璡翃腀羜","0336\-10\-26\ 09:08:32",-5161287593627465637,1.237352
                          ->  2472022954e+38);
(1467, 'Failed to read auto-increment value from storage engine')
mysql test> insert into UK_5046 (COL1,COL2,COL3,COL4,COL5) values(100,"礠崍鮐鏆裲忈幼洽鋁歊詶讖尌杩鲸蛧璡翃腀羜","0336\-10\-26\ 09:08:32",-5161287593627465637,1.2373522472022954e+38);
(1467, 'Failed to read auto-increment value from storage engine')

4. What is your TiDB version? (Required)

+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                                                                               |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v4.0.10\nEdition: Community\nGit Commit Hash: dbade8cda4c5a329037746e171449e0a1dfdb8b3\nGit Branch: heads/refs/tags/v4.0.10\nUTC Build Time: 2021-01-15 02:59:27\nGoVersion: go1.13\nRace Enabled: false\nTiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306\nCheck Table Before Drop: false |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

It's similar to #10481 but has a different behavior

@aytrack aytrack added the type/bug The issue is confirmed as a bug. label Jan 28, 2021
@ti-srebot
Copy link
Contributor

This issue contains Chinese, please use English.

@bb7133
Copy link
Member

bb7133 commented Jan 28, 2021

This is actually duplicated with #982.

It will be fixed by #20708, but it may lead to some compatibility issues, so the PR is not merged yet.

@XuHuaiyu XuHuaiyu added sig/sql-infra SIG: SQL Infra and removed sig/execution SIG execution labels Jan 29, 2021
@morgo morgo added the duplicate Issues or pull requests already exists. label Feb 22, 2021
@morgo
Copy link
Contributor

morgo commented Feb 22, 2021

Closing as a duplicate of #982

Thanks!

@morgo morgo closed this as completed Feb 22, 2021
@glkappe
Copy link

glkappe commented Aug 3, 2023

@bb7133 is it merged for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues or pull requests already exists. severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

7 participants