| 1 |
# |
| 2 |
# MDEV-14693 XA: Assertion `!clust_index->online_log' failed |
| 3 |
# in rollback_inplace_alter_table |
| 4 |
# |
| 5 |
CREATE TABLE t1 (a INT, b INT) ENGINE=InnoDB PARTITION BY HASH(a) PARTITIONS 2; |
| 6 |
XA START 'xid'; |
| 7 |
INSERT INTO t1 VALUES (1,10); |
| 8 |
CREATE DATABASE IF NOT EXISTS db; |
| 9 |
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state |
| 10 |
connect con1,localhost,root,,test; |
| 11 |
SET innodb_lock_wait_timeout= 1, lock_wait_timeout= 2; |
| 12 |
ALTER TABLE t1 FORCE; |
| 13 |
ERROR HY000: Lock wait timeout exceeded; try restarting transaction |
| 14 |
disconnect con1; |
| 15 |
connection default; |
| 16 |
XA END 'xid'; |
| 17 |
XA ROLLBACK 'xid'; |
| 18 |
DROP TABLE t1; |