| 1 |
# Current value of ndb-schema-dist-timeout |
| 2 |
select @@ndb_schema_dist_timeout; |
| 3 |
@@ndb_schema_dist_timeout |
| 4 |
5 |
| 5 |
set @@ndb_schema_dist_timeout = 120; |
| 6 |
ERROR HY000: Variable 'ndb_schema_dist_timeout' is a read only variable |
| 7 |
# |
| 8 |
# Test participant timeout during schema operation |
| 9 |
# |
| 10 |
CREATE TABLE t1( |
| 11 |
a int primary key |
| 12 |
) engine = NDB; |
| 13 |
# Setup participant to timeout when schema operation starts |
| 14 |
set GLOBAL debug="+d,ndb_schema_op_start_timeout"; |
| 15 |
# Expect warning printed on node where schema operation is started |
| 16 |
call mtr.add_suppression("Schema dist coordinator detected timeout"); |
| 17 |
# Run schema operation to trigger participant timeout |
| 18 |
ALTER TABLE t1 ALGORITHM=copy, ADD COLUMN b int; |
| 19 |
Warnings: |
| 20 |
Warning 1296 Node <nodeid> 'Participant timeout' |
| 21 |
# Reset participant to not timeout anymore |
| 22 |
set GLOBAL debug="-d,ndb_schema_op_start_timeout"; |
| 23 |
# Check that schema operation suceeded on another MySQL Server |
| 24 |
SELECT * FROM t1; |
| 25 |
a b |
| 26 |
DROP TABLE t1; |