3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"3 nodes, 1 -> all healthy, debug logging"
7 export CTDB_TEST_LOGLEVEL
=DEBUG
10 ${TEST_DATE_STAMP} ----------------------------------------
11 ${TEST_DATE_STAMP} CONSIDERING MOVES (UNASSIGNED)
12 ${TEST_DATE_STAMP} ----------------------------------------
13 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
14 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
15 ${TEST_DATE_STAMP} 0 [0]
16 ${TEST_DATE_STAMP} 1 [539166]
17 ${TEST_DATE_STAMP} 2 [0]
18 ${TEST_DATE_STAMP} ----------------------------------------
19 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [539166]
20 ${TEST_DATE_STAMP} 1 [-116718] -> 192.168.21.254 -> 0 [+0]
21 ${TEST_DATE_STAMP} 1 [-116718] -> 192.168.21.254 -> 2 [+0]
22 ${TEST_DATE_STAMP} 1 [-116971] -> 192.168.21.253 -> 0 [+0]
23 ${TEST_DATE_STAMP} 1 [-116971] -> 192.168.21.253 -> 2 [+0]
24 ${TEST_DATE_STAMP} 1 [-116971] -> 192.168.21.252 -> 0 [+0]
25 ${TEST_DATE_STAMP} 1 [-116971] -> 192.168.21.252 -> 2 [+0]
26 ${TEST_DATE_STAMP} 1 [-121110] -> 192.168.20.254 -> 0 [+0]
27 ${TEST_DATE_STAMP} 1 [-121110] -> 192.168.20.254 -> 2 [+0]
28 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.253 -> 0 [+0]
29 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.253 -> 2 [+0]
30 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.252 -> 0 [+0]
31 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.252 -> 2 [+0]
32 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.251 -> 0 [+0]
33 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.251 -> 2 [+0]
34 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.250 -> 0 [+0]
35 ${TEST_DATE_STAMP} 1 [-121363] -> 192.168.20.250 -> 2 [+0]
36 ${TEST_DATE_STAMP} 1 [-121110] -> 192.168.20.249 -> 0 [+0]
37 ${TEST_DATE_STAMP} 1 [-121110] -> 192.168.20.249 -> 2 [+0]
38 ${TEST_DATE_STAMP} ----------------------------------------
39 ${TEST_DATE_STAMP}1 [-121363] -> 192.168.20.253 -> 0 [+0]
40 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
41 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
42 ${TEST_DATE_STAMP} 0 [0]
43 ${TEST_DATE_STAMP} 1 [417803]
44 ${TEST_DATE_STAMP} 2 [0]
45 ${TEST_DATE_STAMP} ----------------------------------------
46 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [417803]
47 ${TEST_DATE_STAMP} 1 [-102557] -> 192.168.21.254 -> 0 [+14161]
48 ${TEST_DATE_STAMP} 1 [-102557] -> 192.168.21.254 -> 2 [+0]
49 ${TEST_DATE_STAMP} 1 [-102810] -> 192.168.21.253 -> 0 [+14161]
50 ${TEST_DATE_STAMP} 1 [-102810] -> 192.168.21.253 -> 2 [+0]
51 ${TEST_DATE_STAMP} 1 [-102810] -> 192.168.21.252 -> 0 [+14161]
52 ${TEST_DATE_STAMP} 1 [-102810] -> 192.168.21.252 -> 2 [+0]
53 ${TEST_DATE_STAMP} 1 [-105234] -> 192.168.20.254 -> 0 [+15876]
54 ${TEST_DATE_STAMP} 1 [-105234] -> 192.168.20.254 -> 2 [+0]
55 ${TEST_DATE_STAMP} 1 [-105234] -> 192.168.20.252 -> 0 [+16129]
56 ${TEST_DATE_STAMP} 1 [-105234] -> 192.168.20.252 -> 2 [+0]
57 ${TEST_DATE_STAMP} 1 [-105738] -> 192.168.20.251 -> 0 [+15625]
58 ${TEST_DATE_STAMP} 1 [-105738] -> 192.168.20.251 -> 2 [+0]
59 ${TEST_DATE_STAMP} 1 [-105738] -> 192.168.20.250 -> 0 [+15625]
60 ${TEST_DATE_STAMP} 1 [-105738] -> 192.168.20.250 -> 2 [+0]
61 ${TEST_DATE_STAMP} 1 [-105485] -> 192.168.20.249 -> 0 [+15625]
62 ${TEST_DATE_STAMP} 1 [-105485] -> 192.168.20.249 -> 2 [+0]
63 ${TEST_DATE_STAMP} ----------------------------------------
64 ${TEST_DATE_STAMP}1 [-105738] -> 192.168.20.251 -> 2 [+0]
65 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
66 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
67 ${TEST_DATE_STAMP} 0 [0]
68 ${TEST_DATE_STAMP} 1 [312065]
69 ${TEST_DATE_STAMP} 2 [0]
70 ${TEST_DATE_STAMP} ----------------------------------------
71 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [312065]
72 ${TEST_DATE_STAMP} 1 [-88396] -> 192.168.21.254 -> 0 [+14161]
73 ${TEST_DATE_STAMP} 1 [-88396] -> 192.168.21.254 -> 2 [+14161]
74 ${TEST_DATE_STAMP} 1 [-88649] -> 192.168.21.253 -> 0 [+14161]
75 ${TEST_DATE_STAMP} 1 [-88649] -> 192.168.21.253 -> 2 [+14161]
76 ${TEST_DATE_STAMP} 1 [-88649] -> 192.168.21.252 -> 0 [+14161]
77 ${TEST_DATE_STAMP} 1 [-88649] -> 192.168.21.252 -> 2 [+14161]
78 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.254 -> 0 [+15876]
79 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.254 -> 2 [+15625]
80 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.252 -> 0 [+16129]
81 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.252 -> 2 [+15625]
82 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.250 -> 0 [+15625]
83 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.250 -> 2 [+16129]
84 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.249 -> 0 [+15625]
85 ${TEST_DATE_STAMP} 1 [-89609] -> 192.168.20.249 -> 2 [+15876]
86 ${TEST_DATE_STAMP} ----------------------------------------
87 ${TEST_DATE_STAMP}1 [-88649] -> 192.168.21.253 -> 0 [+14161]
88 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
89 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
90 ${TEST_DATE_STAMP} 0 [14161]
91 ${TEST_DATE_STAMP} 1 [223416]
92 ${TEST_DATE_STAMP} 2 [0]
93 ${TEST_DATE_STAMP} ----------------------------------------
94 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [223416]
95 ${TEST_DATE_STAMP} 1 [-72520] -> 192.168.21.254 -> 0 [+30037]
96 ${TEST_DATE_STAMP} 1 [-72520] -> 192.168.21.254 -> 2 [+14161]
97 ${TEST_DATE_STAMP} 1 [-72520] -> 192.168.21.252 -> 0 [+30290]
98 ${TEST_DATE_STAMP} 1 [-72520] -> 192.168.21.252 -> 2 [+14161]
99 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.254 -> 0 [+30037]
100 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.254 -> 2 [+15625]
101 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.252 -> 0 [+30290]
102 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.252 -> 2 [+15625]
103 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.250 -> 0 [+29786]
104 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.250 -> 2 [+16129]
105 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.249 -> 0 [+29786]
106 ${TEST_DATE_STAMP} 1 [-75448] -> 192.168.20.249 -> 2 [+15876]
107 ${TEST_DATE_STAMP} ----------------------------------------
108 ${TEST_DATE_STAMP}1 [-75448] -> 192.168.20.254 -> 2 [+15625]
109 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
110 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
111 ${TEST_DATE_STAMP} 0 [14161]
112 ${TEST_DATE_STAMP} 1 [147968]
113 ${TEST_DATE_STAMP} 2 [15625]
114 ${TEST_DATE_STAMP} ----------------------------------------
115 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [147968]
116 ${TEST_DATE_STAMP} 1 [-58359] -> 192.168.21.254 -> 0 [+30037]
117 ${TEST_DATE_STAMP} 1 [-58359] -> 192.168.21.254 -> 2 [+28322]
118 ${TEST_DATE_STAMP} 1 [-58359] -> 192.168.21.252 -> 0 [+30290]
119 ${TEST_DATE_STAMP} 1 [-58359] -> 192.168.21.252 -> 2 [+28322]
120 ${TEST_DATE_STAMP} 1 [-59572] -> 192.168.20.252 -> 0 [+30290]
121 ${TEST_DATE_STAMP} 1 [-59572] -> 192.168.20.252 -> 2 [+31501]
122 ${TEST_DATE_STAMP} 1 [-59823] -> 192.168.20.250 -> 0 [+29786]
123 ${TEST_DATE_STAMP} 1 [-59823] -> 192.168.20.250 -> 2 [+31754]
124 ${TEST_DATE_STAMP} 1 [-59823] -> 192.168.20.249 -> 0 [+29786]
125 ${TEST_DATE_STAMP} 1 [-59823] -> 192.168.20.249 -> 2 [+31501]
126 ${TEST_DATE_STAMP} ----------------------------------------
127 ${TEST_DATE_STAMP}1 [-59823] -> 192.168.20.250 -> 0 [+29786]
128 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
129 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
130 ${TEST_DATE_STAMP} 0 [43947]
131 ${TEST_DATE_STAMP} 1 [88145]
132 ${TEST_DATE_STAMP} 2 [15625]
133 ${TEST_DATE_STAMP} ----------------------------------------
134 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [88145]
135 ${TEST_DATE_STAMP} 1 [-44198] -> 192.168.21.254 -> 0 [+44198]
136 ${TEST_DATE_STAMP} 1 [-44198] -> 192.168.21.254 -> 2 [+28322]
137 ${TEST_DATE_STAMP} 1 [-44198] -> 192.168.21.252 -> 0 [+44451]
138 ${TEST_DATE_STAMP} 1 [-44198] -> 192.168.21.252 -> 2 [+28322]
139 ${TEST_DATE_STAMP} 1 [-43947] -> 192.168.20.252 -> 0 [+45915]
140 ${TEST_DATE_STAMP} 1 [-43947] -> 192.168.20.252 -> 2 [+31501]
141 ${TEST_DATE_STAMP} 1 [-43947] -> 192.168.20.249 -> 0 [+45662]
142 ${TEST_DATE_STAMP} 1 [-43947] -> 192.168.20.249 -> 2 [+31501]
143 ${TEST_DATE_STAMP} ----------------------------------------
144 ${TEST_DATE_STAMP}1 [-44198] -> 192.168.21.254 -> 2 [+28322]
145 ${TEST_DATE_STAMP}+++++++++++++++++++++++++++++++++++++++++
146 ${TEST_DATE_STAMP}Selecting most imbalanced node from:
147 ${TEST_DATE_STAMP} 0 [43947]
148 ${TEST_DATE_STAMP} 1 [43947]
149 ${TEST_DATE_STAMP} 2 [43947]
150 ${TEST_DATE_STAMP} ----------------------------------------
151 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 0 [43947]
152 ${TEST_DATE_STAMP} 0 [-28322] -> 192.168.21.253 -> 0 [+28322]
153 ${TEST_DATE_STAMP} 0 [-28322] -> 192.168.21.253 -> 2 [+44198]
154 ${TEST_DATE_STAMP} 0 [-29786] -> 192.168.20.253 -> 0 [+29786]
155 ${TEST_DATE_STAMP} 0 [-29786] -> 192.168.20.253 -> 2 [+45662]
156 ${TEST_DATE_STAMP} 0 [-29786] -> 192.168.20.250 -> 0 [+29786]
157 ${TEST_DATE_STAMP} 0 [-29786] -> 192.168.20.250 -> 2 [+45915]
158 ${TEST_DATE_STAMP} ----------------------------------------
159 ${TEST_DATE_STAMP} ----------------------------------------
160 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 1 [43947]
161 ${TEST_DATE_STAMP} 1 [-28322] -> 192.168.21.252 -> 0 [+44451]
162 ${TEST_DATE_STAMP} 1 [-28322] -> 192.168.21.252 -> 2 [+44198]
163 ${TEST_DATE_STAMP} 1 [-29786] -> 192.168.20.252 -> 0 [+45915]
164 ${TEST_DATE_STAMP} 1 [-29786] -> 192.168.20.252 -> 2 [+45662]
165 ${TEST_DATE_STAMP} 1 [-29786] -> 192.168.20.249 -> 0 [+45662]
166 ${TEST_DATE_STAMP} 1 [-29786] -> 192.168.20.249 -> 2 [+45662]
167 ${TEST_DATE_STAMP} ----------------------------------------
168 ${TEST_DATE_STAMP} ----------------------------------------
169 ${TEST_DATE_STAMP} CONSIDERING MOVES FROM 2 [43947]
170 ${TEST_DATE_STAMP} 2 [-28322] -> 192.168.21.254 -> 0 [+44198]
171 ${TEST_DATE_STAMP} 2 [-28322] -> 192.168.21.254 -> 2 [+28322]
172 ${TEST_DATE_STAMP} 2 [-29786] -> 192.168.20.254 -> 0 [+45662]
173 ${TEST_DATE_STAMP} 2 [-29786] -> 192.168.20.254 -> 2 [+29786]
174 ${TEST_DATE_STAMP} 2 [-29786] -> 192.168.20.251 -> 0 [+45915]
175 ${TEST_DATE_STAMP} 2 [-29786] -> 192.168.20.251 -> 2 [+29786]
176 ${TEST_DATE_STAMP} ----------------------------------------
188 simple_test
0,0,0 <<EOF