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

in bdr mode, primary can't execute add implicit nullable column #51719

Closed
okJiang opened this issue Mar 13, 2024 · 1 comment · Fixed by #51733
Closed

in bdr mode, primary can't execute add implicit nullable column #51719

okJiang opened this issue Mar 13, 2024 · 1 comment · Fixed by #51733
Labels
component/ddl This issue is related to DDL of TiDB. severity/minor type/bug This issue is a bug.

Comments

@okJiang
Copy link
Member

okJiang commented Mar 13, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

admin set bdr role primary;

mysql> create table t3(b int, f int);
Query OK, 0 rows affected (0.16 sec)
mysql> alter table t3 add column g bigint as (b + f) virtual;
ERROR 8263 (HY000): The operation is not allowed while the bdr role of this cluster is set to primary.
mysql> alter table t3 add column aaa int default 0;
ERROR 8263 (HY000): The operation is not allowed while the bdr role of this cluster is set to primary.

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

execute successfully

3. What did you see instead (Required)

ERROR 8263 (HY000): The operation is not allowed while the bdr role of this cluster is set to primary.

4. What is your TiDB version? (Required)

master

@okJiang
Copy link
Member Author

okJiang commented Mar 13, 2024

similar to #51488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. severity/minor type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants