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

DDL任务无法删除或取消 #3

Open
yahaier opened this issue Sep 26, 2022 · 1 comment
Open

DDL任务无法删除或取消 #3

yahaier opened this issue Sep 26, 2022 · 1 comment

Comments

@yahaier
Copy link

yahaier commented Sep 26, 2022

1、创建表:
CREATE TABLE test (
col1 varchar(255) DEFAULT NULL,
col2 varchar(255) NOT NULL,
id int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id,col2)
) ENGINE = InnoDB DEFAULT CHARSET = utf8 ;

2、删除col2主键字段
ALTER TABLE test
DROP PRIMARY KEY,
DROP COLUMN col2,
ADD PRIMARY KEY (id) USING BTREE;

报错:Failed to execute the DDL task. Caused by: Illegal Capacity: -1

4、执行SHOW FULL DDL有条DDL任务执行失败,状态为:PAUSED

5、执行 CANCEL DDL job_id无法取消DDL任务

@mybjlife
Copy link

mybjlife commented Dec 15, 2022

Thanks for your findings.

We can reproduce this issue and already fixed it via PR #117 in the project 'galaxysql'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants