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
On keyspaces that have thousands of tables, OnlineDDL migrations are unable to complete.
Reproduction Steps
./101_initial_cluster.sh
for i in {1..3000}; do
mysql commerce -e "create table test${i} (id int not null primary key, c1 varchar(100))"
done
vtctldclient ApplySchema --ddl-strategy "vitess" --sql "ALTER TABLE test1 ADD age int" commerce
sleep 60
mysql -e "show vitess_migrations\G"
vtctldclient GetWorkflows commerce --include-logs=false --compact
mysql commerce/0@primary -e "select * from _vt.vreplication_log\G"
With the final output being this, which shows that the VReplication workflow itself seems to be fine, but the OnlineDDL migration is stuck:
❯ vtgate --version
vtgate version Version: 22.0.0-SNAPSHOT (Git revision b0b79813f21f8ecbf409f558ad6f8864332637cf branch 'main') built on Wed Oct 23 12:00:26 EDT 2024 by [email protected] using go1.23.2 darwin/arm64
Operating System and Environment details
N/A
Log Fragments
No response
The text was updated successfully, but these errors were encountered:
This test case passes when specifying the longer cutover timeout:
git checkout main && make build
cd examples/local
alias vtctldclient='command vtctldclient --server=localhost:15999'
./101_initial_cluster.sh
for i in {1..3000}; do
mysql commerce -e "create table test${i} (id int not null primary key, c1 varchar(100))"
done
vtctldclient ApplySchema --ddl-strategy "vitess --cut-over-threshold=30s" --sql "ALTER TABLE test1 ADD age int" commerce
sleep 60
mysql -e "show vitess_migrations\G"
vtctldclient GetWorkflows commerce --include-logs=false --compact
mysql commerce/0@primary -e "select * from _vt.vreplication_log\G"
Overview of the Issue
On keyspaces that have thousands of tables, OnlineDDL migrations are unable to complete.
Reproduction Steps
With the final output being this, which shows that the VReplication workflow itself seems to be fine, but the OnlineDDL migration is stuck:
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: