| 1 |
# |
| 2 |
# Test participant crash during schema operation |
| 3 |
# |
| 4 |
CREATE TABLE t1( |
| 5 |
a int primary key |
| 6 |
) engine = NDB; |
| 7 |
# Setup participant to crash when schema operation starts |
| 8 |
set GLOBAL debug="+d,ndb_schema_op_start_crash"; |
| 9 |
# Write file to make mtr.pl restart the server |
| 10 |
# Run schema operation to trigger participant failure |
| 11 |
ALTER TABLE t1 ALGORITHM=copy, ADD COLUMN b int; |
| 12 |
Warnings: |
| 13 |
Warning 1296 Node <nodeid> 'Node unsubscribed' |
| 14 |
# Check that schema operation suceeded on another MySQL Server |
| 15 |
SELECT * FROM t1; |
| 16 |
a b |
| 17 |
DROP TABLE t1; |
| 18 |
# Wait for failed participant to finish restarting |