-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Support executing DDL when cluster is in BDR mode #48519
Labels
type/feature-request
Categorizes issue or PR as related to a new feature.
Comments
okJiang
added
the
type/feature-request
Categorizes issue or PR as related to a new feature.
label
Nov 10, 2023
13 tasks
18 tasks
13 tasks
Update: In document, some definition changed
|
AilinKid
pushed a commit
to AilinKid/tidb
that referenced
this issue
Jan 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution
DDL definition
Circular synchronization
BDR role
None
: means that BDR mode is disabled.Primary
: can execute safe DDL and unmanaged DDL from users. Usually, the Primary does not receive DDL from CDC.Secondary
: can't execute DDL except unmanaged DDL from users. Usually, the Secondary only execute DDL from CDC.Local_only
: can execute all DDL from user. However, the DDL from Local_only can't be synced by CDC.How to switch mode?
restricted mode
Primary
Secondary
unrestricted mode
Local_only
Implement
SQL
admin set bdr role (none|primary|secondary|local_only);
admin
privilegeadmin show bdr role;
admin
privilegeBDR Mode (kernel)
tidb_ddl_job
Work progress
The text was updated successfully, but these errors were encountered: