Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.0.15-galera
-
Fix Version/s: 10.0.21-galera
-
Component/s: Data Definition - Alter Table, Galera, Partitioning
-
Labels:None
-
Environment:RHEL6
Description
Even under wsrep_osu_method=TOI, alter table TableName exchange partition P1 with table TableName_P1; is not replicated to other nodes in the cluster. The partition was exchanged on the node which issue the command, and have this line in the error log
150124 23:46:42 [ERROR] Transaction not registered for MySQL 2PC, but transaction is active
To replicate
CREATE TABLE Temp.T_Test ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, PRIMARY KEY (`ID`) ) ENGINE=InnoDB PARTITION BY RANGE (ID) (PARTITION p10 VALUES LESS THAN (10) ENGINE = InnoDB, PARTITION p20 VALUES LESS THAN (20) ENGINE = InnoDB, PARTITION pMax VALUES LESS THAN MAXVALUE ENGINE = InnoDB) ; INSERT into T_Test (ID) VALUE (9),(19); CREATE table Temp.T_TestP10 like Temp.T_Test; alter table Temp.T_TestP10 remove partitioning; alter table Temp.T_Test exchange partition p10 with table Temp.T_TestP10; select * from Temp.T_Test;
On node 1, the result is only one row with value 19, on all other node, the result will have two rows value 9,19.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
https://github.com/MariaDB/server/commit/4c69dc8116950d6bf0b09bfbc31a86d89831a364