mirror of
https://github.com/MariaDB/server.git
synced 2025-04-05 14:55:32 +02:00

Problem was that if wsrep_load_data_splitting was used streaming replication (SR) parameters were set for MyISAM table. Galera does not currently support SR for MyISAM. Fix is to ignore wsrep_load_data_splitting setting (with warning) if table is not InnoDB table. This is 10.6+ case of fix. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
34 lines
1 KiB
Text
34 lines
1 KiB
Text
--source include/galera_cluster.inc
|
|
--source include/have_aria.inc
|
|
|
|
--connection node_1
|
|
SET GLOBAL wsrep_load_data_splitting=ON;
|
|
SET GLOBAL wsrep_mode=REPLICATE_MYISAM;
|
|
CREATE TABLE t1 (c1 int) ENGINE=MYISAM;
|
|
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
|
|
SELECT COUNT(*) AS EXPECT_6 FROM t1;
|
|
|
|
--connection node_2
|
|
SELECT COUNT(*) AS EXPECT_6 FROM t1;
|
|
|
|
--connection node_1
|
|
ALTER TABLE t1 ENGINE=Aria;
|
|
SET GLOBAL wsrep_mode=REPLICATE_ARIA;
|
|
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
|
|
SELECT COUNT(*) AS EXPECT_12 FROM t1;
|
|
|
|
--connection node_2
|
|
SELECT COUNT(*) AS EXPECT_12 FROM t1;
|
|
|
|
--connection node_1
|
|
ALTER TABLE t1 ENGINE=InnoDB;
|
|
LOAD DATA INFILE '../../std_data/mdev-25731.dat' IGNORE INTO TABLE t1 LINES TERMINATED BY '\n';
|
|
SELECT COUNT(*) AS EXPECT_18 FROM t1;
|
|
|
|
--connection node_2
|
|
SELECT COUNT(*) AS EXPECT_18 FROM t1;
|
|
|
|
--connection node_1
|
|
DROP TABLE t1;
|
|
SET GLOBAL wsrep_load_data_splitting=OFF;
|
|
SET GLOBAL wsrep_mode=DEFAULT;
|