1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
|
==== Create t1 on all servers. ====
include/rpl_init.inc [topology=1->2->3->4->5->6->7->8->9]
CREATE TABLE t1 (a INT);
include/rpl_end.inc
==== Test 3-server topologies ====
include/rpl_init.inc [topology=1 -> 2]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 12'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (1);
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (1);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=2 -> 3]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 23'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (2);
connection server_2;
DELETE FROM t1;
INSERT INTO t1 VALUES (2);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=none]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ''
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (3);
connection server_2;
DELETE FROM t1;
INSERT INTO t1 VALUES (3);
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (3);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->2, 2->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 212'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (4);
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (4);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->2->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 212'
connection server_2;
DELETE FROM t1;
INSERT INTO t1 VALUES (5);
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (5);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=2->1->2]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 212'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (6);
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (6);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->2->3]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 123'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (7);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=2->3->2->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 323 21'
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (8);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->2,2->3,3->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 23123'
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (9);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->3->2->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 13213'
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (10);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1]
include/rpl_end.inc
==== Test 6-server topologies ====
include/rpl_init.inc [topology=1->2->3->4->1->5->6]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 341234156'
connection server_1;
DELETE FROM t1;
INSERT INTO t1 VALUES (11);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1,server_4:t1,server_5:t1,server_6:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=3->4->5->6->3->1->2]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 4563456 312'
connection server_4;
DELETE FROM t1;
INSERT INTO t1 VALUES (12);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1,server_4:t1,server_5:t1,server_6:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=6->5->4->3->2->1]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 65 54 43 32 21'
connection server_6;
DELETE FROM t1;
INSERT INTO t1 VALUES (13);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1,server_4:t1,server_5:t1,server_6:t1]
include/rpl_end.inc
include/rpl_init.inc [topology=1->2->3->1,4->5->6]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 456 23123'
connection server_3;
DELETE FROM t1;
INSERT INTO t1 VALUES (14);
connection server_4;
DELETE FROM t1;
INSERT INTO t1 VALUES (14);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1,server_4:t1,server_5:t1,server_6:t1]
include/rpl_end.inc
==== Test 9-server topology ====
include/rpl_init.inc [topology=1->2, 2->3, 3->4, 4->5, 5->1, 1->6, 6->7, 6->8, 8->9]
include/rpl_generate_sync_chain.inc
rpl_sync_chain= ' 345123451689 67'
connection server_2;
DELETE FROM t1;
INSERT INTO t1 VALUES (15);
include/rpl_sync.inc
include/diff_tables.inc [server_1:t1,server_2:t1,server_3:t1,server_4:t1,server_5:t1,server_6:t1,server_7:t1,server_8:t1,server_9:t1]
include/rpl_end.inc
==== Clean up ====
include/rpl_init.inc [topology=1->2->3->4->5->6->7->8->9]
connection server_1;
DROP TABLE t1;
include/rpl_end.inc
|