set @@global.ndb_schema_dist_lock_wait_timeout = 1; create table t1(a int primary key, b int not null, index(b)) engine = ndb; insert into t1 values (1,1), (2,2); set autocommit=0; begin; select count(*) from t1; count(*) 2 ALTER TABLE t1 algorithm=copy, ADD COLUMN c int; Warnings: Warning 1296 Node 'Distribution of ALTER TABLE 't1' failed' select a from t1 where b = 2; ERROR HY000: Table definition has changed, please retry transaction show warnings; Level Code Message Error 1412 Table definition has changed, please retry transaction Warning 1296 Failed to discover table 't1' from NDB, table definition changed Error 159 Table definition has changed, please retry transaction show tables; Tables_in_test t1 drop table t1; create table t1 ( col0 int, col1 int, col2 int, col3 int, col4 int, col5 int, col6 int, col7 int, col8 int, col9 int, col10 int, col11 int, col12 int, col13 int, col14 int, col15 int, col16 int, col17 int, col18 int, col19 int, col20 int, col21 int, col22 int, col23 int, col24 int, col25 int, col26 int, col27 int, col28 int, col29 int, col30 int, col31 int, primary key(col0)) engine = ndb; begin; insert into t1 (col0) values (1); alter table t1 algorithm=inplace, add column col32 int COLUMN_FORMAT DYNAMIC; Warnings: Warning 1296 Node 'Distribution of ALTER TABLE 't1' failed' select * from t1; ERROR HY000: Table definition has changed, please retry transaction show warnings; Level Code Message Error 1412 Table definition has changed, please retry transaction Warning 1296 Failed to discover table 't1' from NDB, table definition changed Error 159 Table definition has changed, please retry transaction select * from t1; col0 col1 col2 col3 col4 col5 col6 col7 col8 col9 col10 col11 col12 col13 col14 col15 col16 col17 col18 col19 col20 col21 col22 col23 col24 col25 col26 col27 col28 col29 col30 col31 col32 drop table t1;