Skip to content

Hit ERROR 1467 when insert into the max unsigned bigint values(18446744073709551615) with tidb_enable_clustered_index=off #58631

@mayjiang0203

Description

@mayjiang0203

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

MySQL [test]> set tidb_enable_clustered_index=off;
Query OK, 0 rows affected (0.00 sec)

MySQL [test]> create table t(id bigint unsigned auto_increment primary key);
ERROR 8027 (HY000): Information schema is out of date: schema failed to update in 1 lease, please make sure TiDB can connect to TiKV
MySQL [test]> create table t(id bigint unsigned auto_increment primary key);
Query OK, 0 rows affected (0.58 sec)

MySQL [test]> insert into t values(18446744073709551615);
ERROR 1467 (HY000): Failed to read auto-increment value from storage engine
MySQL [test]> set tidb_enable_clustered_index=on;
Query OK, 0 rows affected (0.00 sec)

MySQL [test]> create table t1(id bigint unsigned auto_increment primary key);
Query OK, 0 rows affected (0.11 sec)

MySQL [test]> insert into t1 values(18446744073709551614);
Query OK, 1 row affected (0.01 sec)

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

v8.5.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions