balance3.sim 12.4 KB
Newer Older
S
slguan 已提交
1 2
system sh/stop_dnodes.sh

S
slguan 已提交
3 4 5 6 7 8 9 10
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/deploy.sh -n dnode5 -i 5
system sh/deploy.sh -n dnode6 -i 6
system sh/deploy.sh -n dnode7 -i 7
system sh/deploy.sh -n dnode8 -i 8
S
slguan 已提交
11

12 13 14 15 16 17 18 19
system sh/cfg.sh -n dnode1 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode2 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode3 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode4 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode5 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode6 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode7 -c numOfMnodes -v 3
system sh/cfg.sh -n dnode8 -c numOfMnodes -v 3
S
slguan 已提交
20

S
Shengliang Guan 已提交
21 22 23 24 25 26 27 28
system sh/cfg.sh -n dnode1 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c mnodeEqualVnodeNum -v 0
S
slguan 已提交
29

S
scripts  
slguan 已提交
30 31 32 33 34 35 36 37
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
system sh/cfg.sh -n dnode3 -c wallevel -v 1
system sh/cfg.sh -n dnode4 -c wallevel -v 1
system sh/cfg.sh -n dnode5 -c wallevel -v 1
system sh/cfg.sh -n dnode6 -c wallevel -v 1
system sh/cfg.sh -n dnode7 -c wallevel -v 1
system sh/cfg.sh -n dnode8 -c wallevel -v 1
S
slguan 已提交
38 39 40

print ============== step1
print ========= start dnode1
S
Shengliang Guan 已提交
41
system sh/exec.sh -n dnode1 -s start
S
slguan 已提交
42 43 44
sql connect
sleep 2001

S
slguan 已提交
45 46
sql create dnode $hostname2
sql create dnode $hostname3
S
Shengliang Guan 已提交
47 48
system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
S
slguan 已提交
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
sleep 3001

sql create database c_b3_d1 replica 3
sql use c_b3_d1
sql create table c_b3_t1 (t timestamp, i int)
sql insert into c_b3_t1 values(1520000020015, 15)
sql insert into c_b3_t1 values(1520000021014, 14)
sql insert into c_b3_t1 values(1520000022013, 13)
sql insert into c_b3_t1 values(1520000023012, 12)
sql insert into c_b3_t1 values(1520000024011, 11)

sql create database c_b3_d2 replica 3
sql use c_b3_d2
sql create table c_b3_t2 (t timestamp, i int)
sql insert into c_b3_t2 values(1520000020025, 25)
sql insert into c_b3_t2 values(1520000021024, 24)
sql insert into c_b3_t2 values(1520000022023, 23)
sql insert into c_b3_t2 values(1520000023022, 22)
sql insert into c_b3_t2 values(1520000024021, 21)

sql create database c_b3_d3 replica 3
sql use c_b3_d3
sql create table c_b3_t3 (t timestamp, i int) 
sql insert into c_b3_t3 values(1520000020035, 35)
sql insert into c_b3_t3 values(1520000021034, 34)
sql insert into c_b3_t3 values(1520000022033, 33)
sql insert into c_b3_t3 values(1520000023032, 32)
sql insert into c_b3_t3 values(1520000024031, 31)

$x = 0
show1: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
82
	if $x == 20 then
S
slguan 已提交
83 84 85
	  return -1
	endi
sql show dnodes -x show1
S
scripts  
slguan 已提交
86
$dnode1Vnodes = $data2_1
S
slguan 已提交
87
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
88
$dnode2Vnodes = $data2_2
S
slguan 已提交
89
print dnode2 $dnode2Vnodes
S
scripts  
slguan 已提交
90
$dnode3Vnodes = $data2_3
S
slguan 已提交
91
print dnode3 $dnode3Vnodes
S
scripts  
slguan 已提交
92
$dnode4Vnodes = $data2_4
S
slguan 已提交
93
print dnode4 $dnode4Vnodes
S
slguan 已提交
94

S
scripts  
slguan 已提交
95
if $dnode1Vnodes != 3 then
S
slguan 已提交
96 97
  goto show1
endi
S
scripts  
slguan 已提交
98
if $dnode2Vnodes != 3 then
S
slguan 已提交
99 100
  goto show1
endi
S
scripts  
slguan 已提交
101
if $dnode3Vnodes != 3 then
S
slguan 已提交
102 103
  goto show1
endi
S
scripts  
Shengliang Guan 已提交
104
if $dnode4Vnodes != null then
S
slguan 已提交
105 106 107
  goto show1
endi

S
TD-1382  
Shengliang Guan 已提交
108 109 110 111 112 113 114 115 116
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
117 118
print ============================== step2
print ========= start dnode4
S
slguan 已提交
119
sql create dnode $hostname4
S
Shengliang Guan 已提交
120
system sh/exec.sh -n dnode4 -s start
S
slguan 已提交
121 122 123 124 125 126
sleep 9000

$x = 0
show2: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
127
	if $x == 20 then
S
slguan 已提交
128 129 130
	  return -1
	endi
sql show dnodes -x show2
S
scripts  
slguan 已提交
131
$dnode1Vnodes = $data2_1
S
slguan 已提交
132
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
133
$dnode2Vnodes = $data2_2
S
slguan 已提交
134
print dnode2 $dnode2Vnodes
S
scripts  
slguan 已提交
135
$dnode3Vnodes = $data2_3
S
slguan 已提交
136
print dnode3 $dnode3Vnodes
S
scripts  
slguan 已提交
137
$dnode4Vnodes = $data2_4
S
slguan 已提交
138
print dnode4 $dnode4Vnodes
S
slguan 已提交
139 140 141 142 143

if $dnode4Vnodes != 2 then
  goto show2
endi

S
TD-1382  
Shengliang Guan 已提交
144 145 146 147 148 149 150 151 152
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
153 154
print ============================== step3
print ========= drop dnode2
S
slguan 已提交
155
sql drop dnode $hostname2
S
slguan 已提交
156 157 158 159 160 161
sleep 9000

$x = 0
show3: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
162
	if $x == 20 then
S
slguan 已提交
163 164 165
	  return -1
	endi
sql show dnodes -x show3
S
scripts  
slguan 已提交
166
$dnode1Vnodes = $data2_1
S
slguan 已提交
167
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
168
$dnode2Vnodes = $data2_2
S
slguan 已提交
169
print dnode2 $dnode2Vnodes
S
scripts  
slguan 已提交
170
$dnode3Vnodes = $data2_3
S
slguan 已提交
171
print dnode3 $dnode3Vnodes
S
scripts  
slguan 已提交
172
$dnode4Vnodes = $data2_4
S
slguan 已提交
173
print dnode4 $dnode4Vnodes
S
slguan 已提交
174

S
scripts  
slguan 已提交
175
if $dnode1Vnodes != 3 then
S
slguan 已提交
176 177
  goto show3
endi
S
scripts  
Shengliang Guan 已提交
178
if $dnode2Vnodes != null then
S
slguan 已提交
179 180
  goto show3
endi
S
scripts  
slguan 已提交
181
if $dnode3Vnodes != 3 then
S
slguan 已提交
182 183
  goto show3
endi
S
scripts  
slguan 已提交
184
if $dnode4Vnodes != 3 then
S
slguan 已提交
185 186 187
  goto show3
endi

S
TD-1382  
Shengliang Guan 已提交
188 189 190 191 192 193 194 195 196
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
Shengliang Guan 已提交
197
system sh/exec.sh -n dnode2 -s stop  -x SIGINT
S
slguan 已提交
198 199

print ============================== step4
S
scripts  
slguan 已提交
200
sql create dnode $hostname5
S
Shengliang Guan 已提交
201
system sh/exec.sh -n dnode5 -s start
S
slguan 已提交
202 203 204 205 206 207
sleep 10000

$x = 0
show4: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
208
	if $x == 20 then
S
slguan 已提交
209 210 211
	  return -1
	endi
sql show dnodes -x show4
S
scripts  
slguan 已提交
212
$dnode1Vnodes = $data2_1
S
slguan 已提交
213
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
214 215
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
S
scripts  
slguan 已提交
216
$dnode3Vnodes = $data2_3
S
slguan 已提交
217
print dnode3 $dnode3Vnodes
S
scripts  
slguan 已提交
218
$dnode4Vnodes = $data2_4
S
slguan 已提交
219
print dnode4 $dnode4Vnodes
S
slguan 已提交
220

S
scripts  
slguan 已提交
221
if $dnode5Vnodes != 2 then
S
slguan 已提交
222 223 224
  goto show4
endi

S
TD-1382  
Shengliang Guan 已提交
225 226 227 228 229 230 231 232 233
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
234 235
print ============================== step5
print ========= drop dnode3
S
slguan 已提交
236
sql drop dnode $hostname3
S
slguan 已提交
237 238 239 240 241 242
sleep 9000

$x = 0
show5: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
243
	if $x == 20 then
S
slguan 已提交
244 245 246
	  return -1
	endi
sql show dnodes -x show5
S
scripts  
slguan 已提交
247
$dnode1Vnodes = $data2_1
S
slguan 已提交
248
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
249 250
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
S
scripts  
slguan 已提交
251
$dnode3Vnodes = $data2_3
S
slguan 已提交
252
print dnode3 $dnode3Vnodes
S
scripts  
slguan 已提交
253
$dnode4Vnodes = $data2_4
S
slguan 已提交
254
print dnode4 $dnode4Vnodes
S
slguan 已提交
255

S
scripts  
slguan 已提交
256
if $dnode1Vnodes != 3 then
S
slguan 已提交
257 258
  goto show5
endi
S
scripts  
slguan 已提交
259
if $dnode5Vnodes != 3 then
S
slguan 已提交
260 261
  goto show5
endi
S
scripts  
Shengliang Guan 已提交
262
if $dnode3Vnodes != null then
S
slguan 已提交
263 264
  goto show5
endi
S
scripts  
slguan 已提交
265
if $dnode4Vnodes != 3 then
S
slguan 已提交
266 267 268
  goto show5
endi

S
Shengliang Guan 已提交
269
system sh/exec.sh -n dnode3 -s stop  -x SIGINT
S
slguan 已提交
270

S
TD-1382  
Shengliang Guan 已提交
271 272 273 274 275 276 277 278 279
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
280
print ============================== step6
S
scripts  
slguan 已提交
281
sql create dnode $hostname6
S
Shengliang Guan 已提交
282
system sh/exec.sh -n dnode6 -s start
S
slguan 已提交
283 284 285 286 287 288
sleep 9000

$x = 0
show6: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
289
	if $x == 20 then
S
slguan 已提交
290 291 292
	  return -1
	endi
sql show dnodes -x show6
S
scripts  
slguan 已提交
293
$dnode1Vnodes = $data2_1
S
slguan 已提交
294
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
295
$dnode4Vnodes = $data2_4
S
slguan 已提交
296
print dnode4 $dnode4Vnodes
S
scripts  
slguan 已提交
297 298 299 300
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
S
slguan 已提交
301

S
scripts  
slguan 已提交
302
if $dnode6Vnodes != 2 then
S
slguan 已提交
303 304 305
  goto show6
endi

S
TD-1382  
Shengliang Guan 已提交
306 307 308 309 310 311 312 313 314
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
315 316
print ============================== step7
print ========= drop dnode4
S
slguan 已提交
317
sql drop dnode $hostname4
S
slguan 已提交
318 319 320 321 322 323
sleep 9000

$x = 0
show7: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
324
	if $x == 20 then
S
slguan 已提交
325 326 327
	  return -1
	endi
sql show dnodes -x show7
S
scripts  
slguan 已提交
328
$dnode1Vnodes = $data2_1
S
slguan 已提交
329
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
330
$dnode4Vnodes = $data2_4
S
slguan 已提交
331
print dnode4 $dnode4Vnodes
S
scripts  
slguan 已提交
332 333 334 335
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
S
slguan 已提交
336

S
scripts  
slguan 已提交
337
if $dnode1Vnodes != 3 then
S
slguan 已提交
338 339
  goto show7
endi
S
scripts  
slguan 已提交
340
if $dnode5Vnodes != 3 then
S
slguan 已提交
341 342
  goto show7
endi
S
scripts  
slguan 已提交
343
if $dnode6Vnodes != 3 then
S
slguan 已提交
344 345
  goto show7
endi
S
scripts  
Shengliang Guan 已提交
346
if $dnode4Vnodes != null then
S
slguan 已提交
347 348 349
  goto show7
endi

S
Shengliang Guan 已提交
350
system sh/exec.sh -n dnode4 -s stop  -x SIGINT
S
TD-1382  
Shengliang Guan 已提交
351 352 353 354 355 356 357 358
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7
S
slguan 已提交
359 360

print ============================== step8
S
scripts  
slguan 已提交
361
sql create dnode $hostname7
S
Shengliang Guan 已提交
362
system sh/exec.sh -n dnode7 -s start
S
slguan 已提交
363 364 365 366 367 368
sleep 9000

$x = 0
show8: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
369
	if $x == 20 then
S
slguan 已提交
370 371 372
	  return -1
	endi
sql show dnodes -x show8
S
scripts  
slguan 已提交
373
$dnode1Vnodes = $data2_1
S
slguan 已提交
374
print dnode1 $dnode1Vnodes
S
scripts  
slguan 已提交
375 376 377 378 379 380 381 382
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes

if $dnode7Vnodes != 2 then
S
slguan 已提交
383 384 385
  goto show8
endi

S
TD-1382  
Shengliang Guan 已提交
386 387 388 389 390 391 392 393 394
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
395 396
print ============================== step9
print ========= drop dnode1
S
Shengliang Guan 已提交
397
system sh/exec.sh -n dnode1 -s stop  -x SIGINT
S
slguan 已提交
398 399 400
print stop dnode1 and sleep 10000
sleep 10000

S
slguan 已提交
401
sql drop dnode $hostname1
S
slguan 已提交
402 403 404
print drop dnode1 and sleep 9000
sleep 9000

S
scripts  
slguan 已提交
405 406 407 408
sql show mnodes
$dnode1Role = $data2_1
$dnode4Role = $data2_4
$dnode5Role = $data2_5
S
TD-1382  
Shengliang Guan 已提交
409 410 411 412 413 414 415
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7
S
scripts  
slguan 已提交
416 417 418 419 420 421

if $dnode1Role != offline then
  return -1
endi

print ============================== step9.1
S
TD-1382  
Shengliang Guan 已提交
422
sleep 2000
S
Shengliang Guan 已提交
423
system sh/exec.sh -n dnode1 -s start
S
scripts  
slguan 已提交
424

S
slguan 已提交
425 426 427 428
$x = 0
show9: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
429
	if $x == 20 then
S
slguan 已提交
430 431
	  return -1
	endi
S
TD-1382  
Shengliang Guan 已提交
432 433 434 435 436 437 438 439 440 441 442 443 444

sql show mnodes
$dnode1Role = $data2_1
$dnode4Role = $data2_4
$dnode5Role = $data2_5
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
445
sql show dnodes -x show9
S
scripts  
slguan 已提交
446 447 448 449 450 451 452
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes

S
scripts  
slguan 已提交
453
if $dnode5Vnodes != 3 then
S
slguan 已提交
454 455
  goto show9
endi
S
scripts  
slguan 已提交
456
if $dnode6Vnodes != 3 then
S
slguan 已提交
457 458
  goto show9
endi
S
scripts  
slguan 已提交
459
if $dnode7Vnodes != 3 then
S
slguan 已提交
460 461 462
  goto show9
endi

S
Shengliang Guan 已提交
463
system sh/exec.sh -n dnode1 -s stop -x SIGINT
S
scripts  
Shengliang Guan 已提交
464
sleep 5000
S
scripts  
slguan 已提交
465

S
TD-1382  
Shengliang Guan 已提交
466 467 468 469 470 471 472 473 474
sql show mnodes
print dnode1 ==> $data2_1
print dnode2 ==> $data2_2
print dnode3 ==> $data2_3
print dnode4 ==> $data2_4
print dnode5 ==> $data2_5
print dnode6 ==> $data2_6
print dnode7 ==> $data2_7

S
slguan 已提交
475 476 477 478 479 480 481 482 483
print ============================== step11
print ========= add db4

sql create database c_b3_d4 replica 3
sql use c_b3_d4
$x = 0
create4: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
484
	if $x == 20 then
S
slguan 已提交
485 486 487 488 489 490 491 492
	  return -1
	endi
sql create table c_b3_t4 (t timestamp, i int) -x create4
sql insert into c_b3_t4 values(1520000020045, 45)
sql insert into c_b3_t4 values(1520000021044, 44)
sql insert into c_b3_t4 values(1520000022043, 43)
sql insert into c_b3_t4 values(1520000023042, 42)
sql insert into c_b3_t4 values(1520000024041, 41)
S
scripts  
slguan 已提交
493 494

sleep 3000
S
slguan 已提交
495 496 497 498 499

$x = 0
show11: 
	$x = $x + 1
	sleep 2000
S
scripts  
slguan 已提交
500
	if $x == 20 then
S
slguan 已提交
501 502
	  return -1
	endi
S
scripts  
slguan 已提交
503
sql show dnodes -x show11	
S
scripts  
slguan 已提交
504 505 506 507 508 509
$dnode5Vnodes = $data2_5
print dnode5 $dnode5Vnodes
$dnode6Vnodes = $data2_6
print dnode6 $dnode6Vnodes
$dnode7Vnodes = $data2_7
print dnode7 $dnode7Vnodes
S
slguan 已提交
510

S
scripts  
slguan 已提交
511 512 513 514
if $dnode5Vnodes != 4 then
  goto show11
endi
if $dnode6Vnodes != 4 then
S
slguan 已提交
515 516
  goto show11
endi
S
scripts  
slguan 已提交
517
if $dnode7Vnodes != 4 then
S
slguan 已提交
518 519 520
  goto show11
endi

S
Shengliang Guan 已提交
521
system sh/exec.sh -n dnode1 -s stop  -x SIGINT
S
scripts  
Shengliang Guan 已提交
522
sleep 5000
S
slguan 已提交
523 524

print ============================== step13
S
scripts  
slguan 已提交
525 526 527
sql reset query cache
sleep 1000

S
slguan 已提交
528 529
print ========= check data

S
scripts  
slguan 已提交
530
sql select * from c_b3_d1.c_b3_t1 order by t desc
S
slguan 已提交
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
print $data01 $data11 $data21 $data31 $data41
if $data01 != 11 then
  return -1
endi
if $data11 != 12 then
  return -1
endi
if $data21 != 13 then
  return -1
endi
if $data31 != 14 then
  return -1
endi
if $data41 != 15 then
  return -1
endi

S
scripts  
slguan 已提交
548
sql select * from c_b3_d2.c_b3_t2 order by t desc
S
slguan 已提交
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
print $data01 $data11 $data21 $data31 $data41

if $data01 != 21 then
  return -1
endi
if $data11 != 22 then
  return -1
endi
if $data21 != 23 then
  return -1
endi
if $data31 != 24 then
  return -1
endi
if $data41 != 25 then
  return -1
endi

S
scripts  
slguan 已提交
567
sql select * from c_b3_d3.c_b3_t3 order by t desc
S
slguan 已提交
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
print $data01 $data11 $data21 $data31 $data41
if $data01 != 31 then
  return -1
endi
if $data11 != 32 then
  return -1
endi
if $data21 != 33 then
  return -1
endi
if $data31 != 34 then
  return -1
endi
if $data41 != 35 then
  return -1
endi

print ============================================ over
S
Shengliang Guan 已提交
586 587 588 589 590 591 592 593
system sh/exec.sh -n dnode1 -s stop  -x SIGINT
system sh/exec.sh -n dnode2 -s stop  -x SIGINT
system sh/exec.sh -n dnode3 -s stop  -x SIGINT
system sh/exec.sh -n dnode4 -s stop  -x SIGINT
system sh/exec.sh -n dnode5 -s stop  -x SIGINT
system sh/exec.sh -n dnode6 -s stop  -x SIGINT
system sh/exec.sh -n dnode7 -s stop  -x SIGINT
system sh/exec.sh -n dnode8 -s stop  -x SIGINT