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

adding unique index may cause panic #52312

Closed
wjhuang2016 opened this issue Apr 2, 2024 · 0 comments · Fixed by #52316
Closed

adding unique index may cause panic #52312

wjhuang2016 opened this issue Apr 2, 2024 · 0 comments · Fixed by #52316

Comments

@wjhuang2016
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `b1cce552` (
  `f5d9aecb` timestamp DEFAULT '2031-12-22 06:44:52',
  `d9337060` varchar(186) DEFAULT '483272p6glpe87dwj0q8bu2xl83hl688qzff7gssdz2kvwc3mihu4jr4nmdpstp925989w62xu',
  `4c74082f` year(4) DEFAULT '1977',
  `9215adc3` tinytext DEFAULT NULL,
  `85ad5a07` decimal(5,0) NOT NULL DEFAULT '68649',
  `8c60260f` varchar(130) NOT NULL DEFAULT 'drfwe301tuehhkmk0jl79mzekuq0byg',
  `8069da7b` varchar(90) DEFAULT 'ra5rhqzgjal4o47ppr33xqjmumpiiillh7o5ajx7gohmuroan0u',
  `91e218e1` tinytext DEFAULT NULL,
  PRIMARY KEY (`8c60260f`,`85ad5a07`) /*T![clustered_index] CLUSTERED */,
  KEY `d88975e1` (`8069da7b`),
  UNIQUE KEY `09b5cb03` (`85ad5a07`),
  KEY `03fbc867` (`d9337060`),
  KEY `187a655e` (`d9337060`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin COMMENT='d8a44b0b';
INSERT INTO `b1cce552` (`f5d9aecb`, `d9337060`, `4c74082f`, `9215adc3`, `85ad5a07`, `8c60260f`, `8069da7b`, `91e218e1`) VALUES ('2031-12-22 06:44:52', '483272p6glpe87dwj0q8bu2xl83hl688qzff7gssdz2kvwc3mihu4jr4nmdpstp925989w62xu', 2028, NULL, 846, 'N6QD1=@ped@owVoJx', '9soPM2d6H', 'Tv%'), ('2031-12-22 06:44:52', '483272p6glpe87dwj0q8bu2xl83hl688qzff7gssdz2kvwc3mihu4jr4nmdpstp925989w62xu', 2028, NULL, 9052, '_HWaf#gD!bw', '9soPM2d6H', 'Tv%');
ALTER TABLE `b1cce552` ADD unique INDEX `65290727` (`4c74082f`, `d9337060`, `8069da7b`);

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

Cancelled normally.

3. What did you see instead (Required)

Panic

4. What is your TiDB version? (Required)

master

@wjhuang2016 wjhuang2016 added type/bug This issue is a bug. fuzz/schrddl labels Apr 2, 2024
@ti-chi-bot ti-chi-bot bot added may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 labels Apr 2, 2024
@wjhuang2016 wjhuang2016 removed may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 labels Apr 2, 2024
@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Apr 11, 2024
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