mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
fee138a123
Test case is starting too many servers that are not really needed for original problem testing. This fix reduces number of servers to make test case smaller and more robust. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
417 lines
23 KiB
Text
417 lines
23 KiB
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
call mtr.add_suppression("WSREP: RSU failed due to pending transactions, schema: test, query ALTER.*");
|
|
call mtr.add_suppression("WSREP: ALTER TABLE isolation failure");
|
|
connection node_1;
|
|
CREATE TABLE t1(
|
|
id bigint unsigned NOT NULL AUTO_INCREMENT,
|
|
dt datetime NOT NULL,
|
|
PRIMARY KEY (id,dt),
|
|
KEY dt_idx (dt)
|
|
) ENGINE=InnoDB
|
|
PARTITION BY RANGE( TO_DAYS(dt) ) (
|
|
PARTITION rx2009xx VALUES LESS THAN( TO_DAYS('2010-01-01 00:00:00') ),
|
|
PARTITION rx201001 VALUES LESS THAN( TO_DAYS('2010-02-01 00:00:00') ),
|
|
PARTITION rx201002 VALUES LESS THAN( TO_DAYS('2010-03-01 00:00:00') ),
|
|
PARTITION rx201003 VALUES LESS THAN( TO_DAYS('2010-04-01 00:00:00') ),
|
|
PARTITION rx201004 VALUES LESS THAN( TO_DAYS('2010-05-01 00:00:00') ),
|
|
PARTITION rx201005 VALUES LESS THAN( TO_DAYS('2010-06-01 00:00:00') ),
|
|
PARTITION rx201006 VALUES LESS THAN( TO_DAYS('2010-07-01 00:00:00') ),
|
|
PARTITION rx201007 VALUES LESS THAN( TO_DAYS('2010-08-01 00:00:00') ),
|
|
PARTITION rx201008 VALUES LESS THAN( TO_DAYS('2010-09-01 00:00:00') ),
|
|
PARTITION rx201009 VALUES LESS THAN( TO_DAYS('2010-10-01 00:00:00') ),
|
|
PARTITION rx201010 VALUES LESS THAN( TO_DAYS('2010-11-01 00:00:00') ),
|
|
PARTITION rx201011 VALUES LESS THAN( TO_DAYS('2010-12-01 00:00:00') ),
|
|
PARTITION rx201012 VALUES LESS THAN( TO_DAYS('2011-01-01 00:00:00') ),
|
|
PARTITION rx2011 VALUES LESS THAN MAXVALUE);
|
|
CREATE PROCEDURE p1 (repeat_count int)
|
|
BEGIN
|
|
DECLARE current_num int;
|
|
SET current_num = 0;
|
|
WHILE current_num < repeat_count do
|
|
INSERT INTO t1 VALUES (NULL, '2010-10-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2010-02-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2010-03-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2010-04-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2010-06-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2010-10-21 00:00:00');
|
|
INSERT INTO t1 VALUES (NULL, '2012-02-21 00:00:00');
|
|
COMMIT;
|
|
SET current_num = current_num + 1;
|
|
END WHILE;
|
|
END|
|
|
insert into t1 (id, dt) values (1, '2010-01-02 00:00:00');
|
|
insert into t1 (id, dt) values (2, '2010-01-03 00:00:00');
|
|
insert into t1 (id, dt) values (3, '2010-01-04 00:00:00');
|
|
insert into t1 (id, dt) values (4, '2010-01-05 00:00:00');
|
|
insert into t1 (id, dt) values (5, '2010-01-06 00:00:00');
|
|
insert into t1 (id, dt) values (6, '2010-01-07 00:00:00');
|
|
insert into t1 (id, dt) values (7, '2010-01-08 00:00:00');
|
|
insert into t1 (id, dt) values (8, '2010-01-09 00:00:00');
|
|
insert into t1 (id, dt) values (9, '2010-01-10 00:00:00');
|
|
insert into t1 (id, dt) values (10, '2010-01-11 00:00:00');
|
|
insert into t1 (id, dt) values (11, '2010-01-12 00:00:00');
|
|
insert into t1 (id, dt) values (12, '2010-01-13 00:00:00');
|
|
insert into t1 (id, dt) values (13, '2010-01-14 00:00:00');
|
|
insert into t1 (id, dt) values (14, '2010-01-15 00:00:00');
|
|
insert into t1 (id, dt) values (15, '2010-01-16 00:00:00');
|
|
insert into t1 (id, dt) values (16, '2010-01-17 00:00:00');
|
|
insert into t1 (id, dt) values (17, '2010-01-18 00:00:00');
|
|
insert into t1 (id, dt) values (18, '2010-01-19 00:00:00');
|
|
insert into t1 (id, dt) values (19, '2010-01-20 00:00:00');
|
|
insert into t1 (id, dt) values (20, '2010-01-21 00:00:00');
|
|
insert into t1 (id, dt) values (21, '2010-01-22 00:00:00');
|
|
insert into t1 (id, dt) values (22, '2010-01-23 00:00:00');
|
|
insert into t1 (id, dt) values (23, '2010-01-24 00:00:00');
|
|
insert into t1 (id, dt) values (24, '2010-01-25 00:00:00');
|
|
insert into t1 (id, dt) values (25, '2010-01-26 00:00:00');
|
|
insert into t1 (id, dt) values (26, '2010-01-27 00:00:00');
|
|
insert into t1 (id, dt) values (27, '2010-01-28 00:00:00');
|
|
insert into t1 (id, dt) values (28, '2010-01-29 00:00:00');
|
|
insert into t1 (id, dt) values (29, '2010-01-30 00:00:00');
|
|
insert into t1 (id, dt) values (30, '2010-01-31 00:00:00');
|
|
insert into t1 (id, dt) values (31, '2010-02-01 00:00:00');
|
|
insert into t1 (id, dt) values (32, '2010-02-02 00:00:00');
|
|
insert into t1 (id, dt) values (33, '2010-02-03 00:00:00');
|
|
insert into t1 (id, dt) values (34, '2010-02-04 00:00:00');
|
|
insert into t1 (id, dt) values (35, '2010-02-05 00:00:00');
|
|
insert into t1 (id, dt) values (36, '2010-02-06 00:00:00');
|
|
insert into t1 (id, dt) values (37, '2010-02-07 00:00:00');
|
|
insert into t1 (id, dt) values (38, '2010-02-08 00:00:00');
|
|
insert into t1 (id, dt) values (39, '2010-02-09 00:00:00');
|
|
insert into t1 (id, dt) values (40, '2010-02-10 00:00:00');
|
|
insert into t1 (id, dt) values (41, '2010-02-11 00:00:00');
|
|
insert into t1 (id, dt) values (42, '2010-02-12 00:00:00');
|
|
insert into t1 (id, dt) values (43, '2010-02-13 00:00:00');
|
|
insert into t1 (id, dt) values (44, '2010-02-14 00:00:00');
|
|
insert into t1 (id, dt) values (45, '2010-02-15 00:00:00');
|
|
insert into t1 (id, dt) values (46, '2010-02-16 00:00:00');
|
|
insert into t1 (id, dt) values (47, '2010-02-17 00:00:00');
|
|
insert into t1 (id, dt) values (48, '2010-02-18 00:00:00');
|
|
insert into t1 (id, dt) values (49, '2010-02-19 00:00:00');
|
|
insert into t1 (id, dt) values (50, '2010-02-20 00:00:00');
|
|
insert into t1 (id, dt) values (51, '2010-02-21 00:00:00');
|
|
insert into t1 (id, dt) values (52, '2010-02-22 00:00:00');
|
|
insert into t1 (id, dt) values (53, '2010-02-23 00:00:00');
|
|
insert into t1 (id, dt) values (54, '2010-02-24 00:00:00');
|
|
insert into t1 (id, dt) values (55, '2010-02-25 00:00:00');
|
|
insert into t1 (id, dt) values (56, '2010-02-26 00:00:00');
|
|
insert into t1 (id, dt) values (57, '2010-02-27 00:00:00');
|
|
insert into t1 (id, dt) values (58, '2010-02-28 00:00:00');
|
|
insert into t1 (id, dt) values (59, '2010-03-01 00:00:00');
|
|
insert into t1 (id, dt) values (60, '2010-03-02 00:00:00');
|
|
insert into t1 (id, dt) values (61, '2010-03-03 00:00:00');
|
|
insert into t1 (id, dt) values (62, '2010-03-04 00:00:00');
|
|
insert into t1 (id, dt) values (63, '2010-03-05 00:00:00');
|
|
insert into t1 (id, dt) values (64, '2010-03-06 00:00:00');
|
|
insert into t1 (id, dt) values (65, '2010-03-07 00:00:00');
|
|
insert into t1 (id, dt) values (66, '2010-03-08 00:00:00');
|
|
insert into t1 (id, dt) values (67, '2010-03-09 00:00:00');
|
|
insert into t1 (id, dt) values (68, '2010-03-10 00:00:00');
|
|
insert into t1 (id, dt) values (69, '2010-03-11 00:00:00');
|
|
insert into t1 (id, dt) values (70, '2010-03-12 00:00:00');
|
|
insert into t1 (id, dt) values (71, '2010-03-13 00:00:00');
|
|
insert into t1 (id, dt) values (72, '2010-03-14 00:00:00');
|
|
insert into t1 (id, dt) values (73, '2010-03-15 00:00:00');
|
|
insert into t1 (id, dt) values (74, '2010-03-16 00:00:00');
|
|
insert into t1 (id, dt) values (75, '2010-03-17 00:00:00');
|
|
insert into t1 (id, dt) values (76, '2010-03-18 00:00:00');
|
|
insert into t1 (id, dt) values (77, '2010-03-19 00:00:00');
|
|
insert into t1 (id, dt) values (78, '2010-03-20 00:00:00');
|
|
insert into t1 (id, dt) values (79, '2010-03-21 00:00:00');
|
|
insert into t1 (id, dt) values (80, '2010-03-22 00:00:00');
|
|
insert into t1 (id, dt) values (81, '2010-03-23 00:00:00');
|
|
insert into t1 (id, dt) values (82, '2010-03-24 00:00:00');
|
|
insert into t1 (id, dt) values (83, '2010-03-25 00:00:00');
|
|
insert into t1 (id, dt) values (84, '2010-03-26 00:00:00');
|
|
insert into t1 (id, dt) values (85, '2010-03-27 00:00:00');
|
|
insert into t1 (id, dt) values (86, '2010-03-28 00:00:00');
|
|
insert into t1 (id, dt) values (87, '2010-03-29 00:00:00');
|
|
insert into t1 (id, dt) values (88, '2010-03-30 00:00:00');
|
|
insert into t1 (id, dt) values (89, '2010-03-31 00:00:00');
|
|
insert into t1 (id, dt) values (90, '2010-04-01 00:00:00');
|
|
insert into t1 (id, dt) values (91, '2010-04-02 00:00:00');
|
|
insert into t1 (id, dt) values (92, '2010-04-03 00:00:00');
|
|
insert into t1 (id, dt) values (93, '2010-04-04 00:00:00');
|
|
insert into t1 (id, dt) values (94, '2010-04-05 00:00:00');
|
|
insert into t1 (id, dt) values (95, '2010-04-06 00:00:00');
|
|
insert into t1 (id, dt) values (96, '2010-04-07 00:00:00');
|
|
insert into t1 (id, dt) values (97, '2010-04-08 00:00:00');
|
|
insert into t1 (id, dt) values (98, '2010-04-09 00:00:00');
|
|
insert into t1 (id, dt) values (99, '2010-04-10 00:00:00');
|
|
insert into t1 (id, dt) values (100, '2010-04-11 00:00:00');
|
|
insert into t1 (id, dt) values (101, '2010-04-12 00:00:00');
|
|
insert into t1 (id, dt) values (102, '2010-04-13 00:00:00');
|
|
insert into t1 (id, dt) values (103, '2010-04-14 00:00:00');
|
|
insert into t1 (id, dt) values (104, '2010-04-15 00:00:00');
|
|
insert into t1 (id, dt) values (105, '2010-04-16 00:00:00');
|
|
insert into t1 (id, dt) values (106, '2010-04-17 00:00:00');
|
|
insert into t1 (id, dt) values (107, '2010-04-18 00:00:00');
|
|
insert into t1 (id, dt) values (108, '2010-04-19 00:00:00');
|
|
insert into t1 (id, dt) values (109, '2010-04-20 00:00:00');
|
|
insert into t1 (id, dt) values (110, '2010-04-21 00:00:00');
|
|
insert into t1 (id, dt) values (111, '2010-04-22 00:00:00');
|
|
insert into t1 (id, dt) values (112, '2010-04-23 00:00:00');
|
|
insert into t1 (id, dt) values (113, '2010-04-24 00:00:00');
|
|
insert into t1 (id, dt) values (114, '2010-04-25 00:00:00');
|
|
insert into t1 (id, dt) values (115, '2010-04-26 00:00:00');
|
|
insert into t1 (id, dt) values (116, '2010-04-27 00:00:00');
|
|
insert into t1 (id, dt) values (117, '2010-04-28 00:00:00');
|
|
insert into t1 (id, dt) values (118, '2010-04-29 00:00:00');
|
|
insert into t1 (id, dt) values (119, '2010-04-30 00:00:00');
|
|
insert into t1 (id, dt) values (120, '2010-05-01 00:00:00');
|
|
insert into t1 (id, dt) values (121, '2010-05-02 00:00:00');
|
|
insert into t1 (id, dt) values (122, '2010-05-03 00:00:00');
|
|
insert into t1 (id, dt) values (123, '2010-05-04 00:00:00');
|
|
insert into t1 (id, dt) values (124, '2010-05-05 00:00:00');
|
|
insert into t1 (id, dt) values (125, '2010-05-06 00:00:00');
|
|
insert into t1 (id, dt) values (126, '2010-05-07 00:00:00');
|
|
insert into t1 (id, dt) values (127, '2010-05-08 00:00:00');
|
|
insert into t1 (id, dt) values (128, '2010-05-09 00:00:00');
|
|
insert into t1 (id, dt) values (129, '2010-05-10 00:00:00');
|
|
insert into t1 (id, dt) values (130, '2010-05-11 00:00:00');
|
|
insert into t1 (id, dt) values (131, '2010-05-12 00:00:00');
|
|
insert into t1 (id, dt) values (132, '2010-05-13 00:00:00');
|
|
insert into t1 (id, dt) values (133, '2010-05-14 00:00:00');
|
|
insert into t1 (id, dt) values (134, '2010-05-15 00:00:00');
|
|
insert into t1 (id, dt) values (135, '2010-05-16 00:00:00');
|
|
insert into t1 (id, dt) values (136, '2010-05-17 00:00:00');
|
|
insert into t1 (id, dt) values (137, '2010-05-18 00:00:00');
|
|
insert into t1 (id, dt) values (138, '2010-05-19 00:00:00');
|
|
insert into t1 (id, dt) values (139, '2010-05-20 00:00:00');
|
|
insert into t1 (id, dt) values (140, '2010-05-21 00:00:00');
|
|
insert into t1 (id, dt) values (141, '2010-05-22 00:00:00');
|
|
insert into t1 (id, dt) values (142, '2010-05-23 00:00:00');
|
|
insert into t1 (id, dt) values (143, '2010-05-24 00:00:00');
|
|
insert into t1 (id, dt) values (144, '2010-05-25 00:00:00');
|
|
insert into t1 (id, dt) values (145, '2010-05-26 00:00:00');
|
|
insert into t1 (id, dt) values (146, '2010-05-27 00:00:00');
|
|
insert into t1 (id, dt) values (147, '2010-05-28 00:00:00');
|
|
insert into t1 (id, dt) values (148, '2010-05-29 00:00:00');
|
|
insert into t1 (id, dt) values (149, '2010-05-30 00:00:00');
|
|
insert into t1 (id, dt) values (150, '2010-05-31 00:00:00');
|
|
insert into t1 (id, dt) values (151, '2010-06-01 00:00:00');
|
|
insert into t1 (id, dt) values (152, '2010-06-02 00:00:00');
|
|
insert into t1 (id, dt) values (153, '2010-06-03 00:00:00');
|
|
insert into t1 (id, dt) values (154, '2010-06-04 00:00:00');
|
|
insert into t1 (id, dt) values (155, '2010-06-05 00:00:00');
|
|
insert into t1 (id, dt) values (156, '2010-06-06 00:00:00');
|
|
insert into t1 (id, dt) values (157, '2010-06-07 00:00:00');
|
|
insert into t1 (id, dt) values (158, '2010-06-08 00:00:00');
|
|
insert into t1 (id, dt) values (159, '2010-06-09 00:00:00');
|
|
insert into t1 (id, dt) values (160, '2010-06-10 00:00:00');
|
|
insert into t1 (id, dt) values (161, '2010-06-11 00:00:00');
|
|
insert into t1 (id, dt) values (162, '2010-06-12 00:00:00');
|
|
insert into t1 (id, dt) values (163, '2010-06-13 00:00:00');
|
|
insert into t1 (id, dt) values (164, '2010-06-14 00:00:00');
|
|
insert into t1 (id, dt) values (165, '2010-06-15 00:00:00');
|
|
insert into t1 (id, dt) values (166, '2010-06-16 00:00:00');
|
|
insert into t1 (id, dt) values (167, '2010-06-17 00:00:00');
|
|
insert into t1 (id, dt) values (168, '2010-06-18 00:00:00');
|
|
insert into t1 (id, dt) values (169, '2010-06-19 00:00:00');
|
|
insert into t1 (id, dt) values (170, '2010-06-20 00:00:00');
|
|
insert into t1 (id, dt) values (171, '2010-06-21 00:00:00');
|
|
insert into t1 (id, dt) values (172, '2010-06-22 00:00:00');
|
|
insert into t1 (id, dt) values (173, '2010-06-23 00:00:00');
|
|
insert into t1 (id, dt) values (174, '2010-06-24 00:00:00');
|
|
insert into t1 (id, dt) values (175, '2010-06-25 00:00:00');
|
|
insert into t1 (id, dt) values (176, '2010-06-26 00:00:00');
|
|
insert into t1 (id, dt) values (177, '2010-06-27 00:00:00');
|
|
insert into t1 (id, dt) values (178, '2010-06-28 00:00:00');
|
|
insert into t1 (id, dt) values (179, '2010-06-29 00:00:00');
|
|
insert into t1 (id, dt) values (180, '2010-06-30 00:00:00');
|
|
insert into t1 (id, dt) values (181, '2010-07-01 00:00:00');
|
|
insert into t1 (id, dt) values (182, '2010-07-02 00:00:00');
|
|
insert into t1 (id, dt) values (183, '2010-07-03 00:00:00');
|
|
insert into t1 (id, dt) values (184, '2010-07-04 00:00:00');
|
|
insert into t1 (id, dt) values (185, '2010-07-05 00:00:00');
|
|
insert into t1 (id, dt) values (186, '2010-07-06 00:00:00');
|
|
insert into t1 (id, dt) values (187, '2010-07-07 00:00:00');
|
|
insert into t1 (id, dt) values (188, '2010-07-08 00:00:00');
|
|
insert into t1 (id, dt) values (189, '2010-07-09 00:00:00');
|
|
insert into t1 (id, dt) values (190, '2010-07-10 00:00:00');
|
|
insert into t1 (id, dt) values (191, '2010-07-11 00:00:00');
|
|
insert into t1 (id, dt) values (192, '2010-07-12 00:00:00');
|
|
insert into t1 (id, dt) values (193, '2010-07-13 00:00:00');
|
|
insert into t1 (id, dt) values (194, '2010-07-14 00:00:00');
|
|
insert into t1 (id, dt) values (195, '2010-07-15 00:00:00');
|
|
insert into t1 (id, dt) values (196, '2010-07-16 00:00:00');
|
|
insert into t1 (id, dt) values (197, '2010-07-17 00:00:00');
|
|
insert into t1 (id, dt) values (198, '2010-07-18 00:00:00');
|
|
insert into t1 (id, dt) values (199, '2010-07-19 00:00:00');
|
|
insert into t1 (id, dt) values (200, '2010-07-20 00:00:00');
|
|
insert into t1 (id, dt) values (201, '2010-07-21 00:00:00');
|
|
insert into t1 (id, dt) values (202, '2010-07-22 00:00:00');
|
|
insert into t1 (id, dt) values (203, '2010-07-23 00:00:00');
|
|
insert into t1 (id, dt) values (204, '2010-07-24 00:00:00');
|
|
insert into t1 (id, dt) values (205, '2010-07-25 00:00:00');
|
|
insert into t1 (id, dt) values (206, '2010-07-26 00:00:00');
|
|
insert into t1 (id, dt) values (207, '2010-07-27 00:00:00');
|
|
insert into t1 (id, dt) values (208, '2010-07-28 00:00:00');
|
|
insert into t1 (id, dt) values (209, '2010-07-29 00:00:00');
|
|
insert into t1 (id, dt) values (210, '2010-07-30 00:00:00');
|
|
insert into t1 (id, dt) values (211, '2010-07-31 00:00:00');
|
|
insert into t1 (id, dt) values (212, '2010-08-01 00:00:00');
|
|
insert into t1 (id, dt) values (213, '2010-08-02 00:00:00');
|
|
insert into t1 (id, dt) values (214, '2010-08-03 00:00:00');
|
|
insert into t1 (id, dt) values (215, '2010-08-04 00:00:00');
|
|
insert into t1 (id, dt) values (216, '2010-08-05 00:00:00');
|
|
insert into t1 (id, dt) values (217, '2010-08-06 00:00:00');
|
|
insert into t1 (id, dt) values (218, '2010-08-07 00:00:00');
|
|
insert into t1 (id, dt) values (219, '2010-08-08 00:00:00');
|
|
insert into t1 (id, dt) values (220, '2010-08-09 00:00:00');
|
|
insert into t1 (id, dt) values (221, '2010-08-10 00:00:00');
|
|
insert into t1 (id, dt) values (222, '2010-08-11 00:00:00');
|
|
insert into t1 (id, dt) values (223, '2010-08-12 00:00:00');
|
|
insert into t1 (id, dt) values (224, '2010-08-13 00:00:00');
|
|
insert into t1 (id, dt) values (225, '2010-08-14 00:00:00');
|
|
insert into t1 (id, dt) values (226, '2010-08-15 00:00:00');
|
|
insert into t1 (id, dt) values (227, '2010-08-16 00:00:00');
|
|
insert into t1 (id, dt) values (228, '2010-08-17 00:00:00');
|
|
insert into t1 (id, dt) values (229, '2010-08-18 00:00:00');
|
|
insert into t1 (id, dt) values (230, '2010-08-19 00:00:00');
|
|
insert into t1 (id, dt) values (231, '2010-08-20 00:00:00');
|
|
insert into t1 (id, dt) values (232, '2010-08-21 00:00:00');
|
|
insert into t1 (id, dt) values (233, '2010-08-22 00:00:00');
|
|
insert into t1 (id, dt) values (234, '2010-08-23 00:00:00');
|
|
insert into t1 (id, dt) values (235, '2010-08-24 00:00:00');
|
|
insert into t1 (id, dt) values (236, '2010-08-25 00:00:00');
|
|
insert into t1 (id, dt) values (237, '2010-08-26 00:00:00');
|
|
insert into t1 (id, dt) values (238, '2010-08-27 00:00:00');
|
|
insert into t1 (id, dt) values (239, '2010-08-28 00:00:00');
|
|
insert into t1 (id, dt) values (240, '2010-08-29 00:00:00');
|
|
insert into t1 (id, dt) values (241, '2010-08-30 00:00:00');
|
|
insert into t1 (id, dt) values (242, '2010-08-31 00:00:00');
|
|
insert into t1 (id, dt) values (243, '2010-09-01 00:00:00');
|
|
insert into t1 (id, dt) values (244, '2010-09-02 00:00:00');
|
|
insert into t1 (id, dt) values (245, '2010-09-03 00:00:00');
|
|
insert into t1 (id, dt) values (246, '2010-09-04 00:00:00');
|
|
insert into t1 (id, dt) values (247, '2010-09-05 00:00:00');
|
|
insert into t1 (id, dt) values (248, '2010-09-06 00:00:00');
|
|
insert into t1 (id, dt) values (249, '2010-09-07 00:00:00');
|
|
insert into t1 (id, dt) values (250, '2010-09-08 00:00:00');
|
|
insert into t1 (id, dt) values (251, '2010-09-09 00:00:00');
|
|
insert into t1 (id, dt) values (252, '2010-09-10 00:00:00');
|
|
insert into t1 (id, dt) values (253, '2010-09-11 00:00:00');
|
|
insert into t1 (id, dt) values (254, '2010-09-12 00:00:00');
|
|
insert into t1 (id, dt) values (255, '2010-09-13 00:00:00');
|
|
insert into t1 (id, dt) values (256, '2010-09-14 00:00:00');
|
|
insert into t1 (id, dt) values (257, '2010-09-15 00:00:00');
|
|
insert into t1 (id, dt) values (258, '2010-09-16 00:00:00');
|
|
insert into t1 (id, dt) values (259, '2010-09-17 00:00:00');
|
|
insert into t1 (id, dt) values (260, '2010-09-18 00:00:00');
|
|
insert into t1 (id, dt) values (261, '2010-09-19 00:00:00');
|
|
insert into t1 (id, dt) values (262, '2010-09-20 00:00:00');
|
|
insert into t1 (id, dt) values (263, '2010-09-21 00:00:00');
|
|
insert into t1 (id, dt) values (264, '2010-09-22 00:00:00');
|
|
insert into t1 (id, dt) values (265, '2010-09-23 00:00:00');
|
|
insert into t1 (id, dt) values (266, '2010-09-24 00:00:00');
|
|
insert into t1 (id, dt) values (267, '2010-09-25 00:00:00');
|
|
insert into t1 (id, dt) values (268, '2010-09-26 00:00:00');
|
|
insert into t1 (id, dt) values (269, '2010-09-27 00:00:00');
|
|
insert into t1 (id, dt) values (270, '2010-09-28 00:00:00');
|
|
insert into t1 (id, dt) values (271, '2010-09-29 00:00:00');
|
|
insert into t1 (id, dt) values (272, '2010-09-30 00:00:00');
|
|
insert into t1 (id, dt) values (273, '2010-10-01 00:00:00');
|
|
insert into t1 (id, dt) values (274, '2010-10-02 00:00:00');
|
|
insert into t1 (id, dt) values (275, '2010-10-03 00:00:00');
|
|
insert into t1 (id, dt) values (276, '2010-10-04 00:00:00');
|
|
insert into t1 (id, dt) values (277, '2010-10-05 00:00:00');
|
|
insert into t1 (id, dt) values (278, '2010-10-06 00:00:00');
|
|
insert into t1 (id, dt) values (279, '2010-10-07 00:00:00');
|
|
insert into t1 (id, dt) values (280, '2010-10-08 00:00:00');
|
|
insert into t1 (id, dt) values (281, '2010-10-09 00:00:00');
|
|
insert into t1 (id, dt) values (282, '2010-10-10 00:00:00');
|
|
insert into t1 (id, dt) values (283, '2010-10-11 00:00:00');
|
|
insert into t1 (id, dt) values (284, '2010-10-12 00:00:00');
|
|
insert into t1 (id, dt) values (285, '2010-10-13 00:00:00');
|
|
insert into t1 (id, dt) values (286, '2010-10-14 00:00:00');
|
|
insert into t1 (id, dt) values (287, '2010-10-15 00:00:00');
|
|
insert into t1 (id, dt) values (288, '2010-10-16 00:00:00');
|
|
insert into t1 (id, dt) values (289, '2010-10-17 00:00:00');
|
|
insert into t1 (id, dt) values (290, '2010-10-18 00:00:00');
|
|
insert into t1 (id, dt) values (291, '2010-10-19 00:00:00');
|
|
insert into t1 (id, dt) values (292, '2010-10-20 00:00:00');
|
|
insert into t1 (id, dt) values (293, '2010-10-21 00:00:00');
|
|
insert into t1 (id, dt) values (294, '2010-10-22 00:00:00');
|
|
insert into t1 (id, dt) values (295, '2010-10-23 00:00:00');
|
|
insert into t1 (id, dt) values (296, '2010-10-24 00:00:00');
|
|
insert into t1 (id, dt) values (297, '2010-10-25 00:00:00');
|
|
insert into t1 (id, dt) values (298, '2010-10-26 00:00:00');
|
|
insert into t1 (id, dt) values (299, '2010-10-27 00:00:00');
|
|
insert into t1 (id, dt) values (300, '2010-10-28 00:00:00');
|
|
insert into t1 (id, dt) values (301, '2010-10-29 00:00:00');
|
|
insert into t1 (id, dt) values (302, '2010-10-30 00:00:00');
|
|
insert into t1 (id, dt) values (303, '2010-10-31 00:00:00');
|
|
insert into t1 (id, dt) values (304, '2010-11-01 00:00:00');
|
|
insert into t1 (id, dt) values (305, '2010-11-02 00:00:00');
|
|
insert into t1 (id, dt) values (306, '2010-11-03 00:00:00');
|
|
insert into t1 (id, dt) values (307, '2010-11-04 00:00:00');
|
|
insert into t1 (id, dt) values (308, '2010-11-05 00:00:00');
|
|
insert into t1 (id, dt) values (309, '2010-11-06 00:00:00');
|
|
insert into t1 (id, dt) values (310, '2010-11-07 00:00:00');
|
|
insert into t1 (id, dt) values (311, '2010-11-08 00:00:00');
|
|
insert into t1 (id, dt) values (312, '2010-11-09 00:00:00');
|
|
insert into t1 (id, dt) values (313, '2010-11-10 00:00:00');
|
|
insert into t1 (id, dt) values (314, '2010-11-11 00:00:00');
|
|
insert into t1 (id, dt) values (315, '2010-11-12 00:00:00');
|
|
insert into t1 (id, dt) values (316, '2010-11-13 00:00:00');
|
|
insert into t1 (id, dt) values (317, '2010-11-14 00:00:00');
|
|
insert into t1 (id, dt) values (318, '2010-11-15 00:00:00');
|
|
insert into t1 (id, dt) values (319, '2010-11-16 00:00:00');
|
|
insert into t1 (id, dt) values (320, '2010-11-17 00:00:00');
|
|
insert into t1 (id, dt) values (321, '2010-11-18 00:00:00');
|
|
insert into t1 (id, dt) values (322, '2010-11-19 00:00:00');
|
|
insert into t1 (id, dt) values (323, '2010-11-20 00:00:00');
|
|
insert into t1 (id, dt) values (324, '2010-11-21 00:00:00');
|
|
insert into t1 (id, dt) values (325, '2010-11-22 00:00:00');
|
|
insert into t1 (id, dt) values (326, '2010-11-23 00:00:00');
|
|
insert into t1 (id, dt) values (327, '2010-11-24 00:00:00');
|
|
insert into t1 (id, dt) values (328, '2010-11-25 00:00:00');
|
|
insert into t1 (id, dt) values (329, '2010-11-26 00:00:00');
|
|
insert into t1 (id, dt) values (330, '2010-11-27 00:00:00');
|
|
insert into t1 (id, dt) values (331, '2010-11-28 00:00:00');
|
|
insert into t1 (id, dt) values (332, '2010-11-29 00:00:00');
|
|
insert into t1 (id, dt) values (333, '2010-11-30 00:00:00');
|
|
insert into t1 (id, dt) values (334, '2010-12-01 00:00:00');
|
|
insert into t1 (id, dt) values (335, '2010-12-02 00:00:00');
|
|
insert into t1 (id, dt) values (336, '2010-12-03 00:00:00');
|
|
insert into t1 (id, dt) values (337, '2010-12-04 00:00:00');
|
|
insert into t1 (id, dt) values (338, '2010-12-05 00:00:00');
|
|
insert into t1 (id, dt) values (339, '2010-12-06 00:00:00');
|
|
insert into t1 (id, dt) values (340, '2010-12-07 00:00:00');
|
|
insert into t1 (id, dt) values (341, '2010-12-08 00:00:00');
|
|
insert into t1 (id, dt) values (342, '2010-12-09 00:00:00');
|
|
insert into t1 (id, dt) values (343, '2010-12-10 00:00:00');
|
|
insert into t1 (id, dt) values (344, '2010-12-11 00:00:00');
|
|
insert into t1 (id, dt) values (345, '2010-12-12 00:00:00');
|
|
insert into t1 (id, dt) values (346, '2010-12-13 00:00:00');
|
|
insert into t1 (id, dt) values (347, '2010-12-14 00:00:00');
|
|
insert into t1 (id, dt) values (348, '2010-12-15 00:00:00');
|
|
insert into t1 (id, dt) values (349, '2010-12-16 00:00:00');
|
|
insert into t1 (id, dt) values (350, '2010-12-17 00:00:00');
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
350
|
|
connection node_1;
|
|
call p1(10);;
|
|
connection node_2;
|
|
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
|
connection node_2a;
|
|
SET SESSION wsrep_OSU_method='RSU';
|
|
SET SESSION sql_log_bin = 0;
|
|
ALTER TABLE t1 DROP PARTITION rx2009xx;
|
|
ALTER TABLE t1 DROP PARTITION rx201004;
|
|
ALTER TABLE t1 DROP PARTITION rx201008;
|
|
SET SESSION wsrep_OSU_METHOD='TOI';
|
|
SET SESSION sql_log_bin = 1;
|
|
SELECT @@wsrep_OSU_method;
|
|
@@wsrep_OSU_method
|
|
TOI
|
|
connection node_2;
|
|
disconnect node_2a;
|
|
connection node_1;
|
|
connection node_1;
|
|
DROP TABLE t1;
|
|
DROP PROCEDURE p1;
|