You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distributed_ddl_output_mode is set to QUORUM, when DDLQueryStatusInputStream is output, all active hosts are executed successfully, there are only inactive nodes in unfinished_hosts, and inactive hosts are a minority
2.1. unfinished_hosts are all inactive hosts
2.2. Check each shard : the count of inactive host replicas / the total count of shard replicas <= 1/2 Add quorum mode to the distributed_ddl_output_mode when executing DDL… #27004
Satisfy the above 2.1 and 2.2, will not wait for more than distributed_ddl_task_timeout, directly return the information of the number of successful hosts and the number of failed hosts, otherwise it will wait for timeout.
I plan to implement this feature, can you give me some suggestions? @tavplubix
The text was updated successfully, but these errors were encountered:
Use case
#21574
#23062
When a small number of hosts down, whether it is a permanent or temporary,
ON CLUSTER
DDL will not return timeout exception.Describe the solution you'd like
When the host starts, run a background thread to periodically check for 60s, and register the current host as the ephemeral node of zooKeeper, the path is is_active.
Activate current host as ephemeral node in zookeeper #26269
Distributed_ddl_output_mode
is set toQUORUM
, whenDDLQueryStatusInputStream
is output, all active hosts are executed successfully, there are only inactive nodes inunfinished_hosts
, and inactive hosts are a minority2.1.
unfinished_hosts
are all inactive hosts2.2. Check each shard : the count of inactive host replicas / the total count of shard replicas <= 1/2
Add quorum mode to the distributed_ddl_output_mode when executing DDL… #27004
Satisfy the above 2.1 and 2.2, will not wait for more than
distributed_ddl_task_timeout
, directly return the information of the number of successful hosts and the number of failed hosts, otherwise it will wait for timeout.I plan to implement this feature, can you give me some suggestions? @tavplubix
The text was updated successfully, but these errors were encountered: