cluster_main.sim 15.1 KB
Newer Older
H
Hui Li 已提交
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
system sh/stop_dnodes.sh
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/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 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 dnode1 -c balanceInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode3 -c balanceInterval -v 10
system sh/cfg.sh -n dnode4 -c balanceInterval -v 10

system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode4 -c numOfTotalVnodes -v 4

system sh/cfg.sh -n dnode1 -c alternativeRole -v 0
system sh/cfg.sh -n dnode2 -c alternativeRole -v 0
system sh/cfg.sh -n dnode3 -c alternativeRole -v 0
system sh/cfg.sh -n dnode4 -c alternativeRole -v 0

system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 1000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 1000
system sh/cfg.sh -n dnode3 -c maxtablesPerVnode -v 1000
system sh/cfg.sh -n dnode4 -c maxtablesPerVnode -v 1000

system sh/cfg.sh -n dnode1 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode2 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode3 -c arbitrator -v $arbitrator
system sh/cfg.sh -n dnode4 -c arbitrator -v $arbitrator

print ============== step0: start tarbitrator
system sh/exec_tarbitrator.sh -s start

print ============== step1: start dnode1/dnode2/dnode3
system sh/exec.sh -n dnode1 -s start
system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
sleep 3000
sql connect
sql create dnode $hostname2
sql create dnode $hostname3
sleep 3000

print ============== step2: create db1 with replica 3
$db = db1
print create database $db replica 3
#sql create database $db replica 3 maxTables $totalTableNum
sql create database $db replica 3
sql use $db

print ============== step3: create stable stb1
$stb = stb1
H
Hui Li 已提交
64
sql create table $stb (ts timestamp, c1 int) tags(t1 int, t2 binary(8))
H
Hui Li 已提交
65 66

print ============== step4: start 10 client1/ 10 client2/ 10 client3/ 10 client4/ 1 client5
H
Hui Li 已提交
67
#run_back unique/cluster/client_test.sim
H
Hui Li 已提交
68
run_back unique/cluster/client1_0.sim
H
Hui Li 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
run_back unique/cluster/client1_1.sim
run_back unique/cluster/client1_2.sim
run_back unique/cluster/client1_3.sim
run_back unique/cluster/client2_0.sim
run_back unique/cluster/client2_1.sim
run_back unique/cluster/client2_2.sim
run_back unique/cluster/client2_3.sim
run_back unique/cluster/client3.sim
run_back unique/cluster/client4.sim

sleep 20000
wait_subsim_insert_data:
sql select count(*) from $stb
print data00 $data00
if $data00 < 1 then
  sleep 3000
  goto wait_subsim_insert_data
endi
H
Hui Li 已提交
87 88 89 90 91 92 93


print wait for a while to let clients start insert data
sleep 5000    

$loop_cnt = 0
loop_cluster_do:
H
Hui Li 已提交
94
print **** **** **** START loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
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
print ============== step5: start dnode4 and add into cluster, then wait dnode4 ready
system sh/exec.sh -n dnode4 -s start
sql create dnode $hostname4

wait_dnode4_ready_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 4 then
  sleep 2000
  goto wait_dnode4_ready_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
#$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode4Status = $data4_4 
elif $loop_cnt == 1 then
  $dnode4Status = $data4_6 
elif $loop_cnt == 2 then
  $dnode4Status = $data4_8 
else then
H
Hui Li 已提交
125
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
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
  return
endi

if $dnode4Status != ready then
  sleep 2000
  goto wait_dnode4_ready_0
endi


print ============== step6: stop and drop dnode1, then remove data dir of dnode1 
system sh/exec.sh -n dnode1 -s stop -x SIGINT

$cnt = 0
wait_dnode1_offline_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 4 then
  sleep 2000
  goto wait_dnode1_offline_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
 
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode1Status = $data4_1 
elif $loop_cnt == 1 then
  $dnode1Status = $data4_5 
elif $loop_cnt == 2 then
  $dnode1Status = $data4_7 
elif $loop_cnt == 3 then
  $dnode1Status = $data4_9 
else then
H
Hui Li 已提交
167
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
168 169 170 171 172 173 174 175
  return
endi

if $dnode1Status != offline then
  sleep 2000
  goto wait_dnode1_offline_0
endi

H
Hui Li 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218


$cnt = 0
wait_mnode1_offline_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
print show mnodes
sql show mnodes
if $rows != 3 then
  sleep 2000
  goto wait_mnode1_offline_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$mnode1Status = $data2_1
$mnode2Status = $data2_2
$mnode3Status = $data2_3
$mnode4Status = $data2_4

if $loop_cnt == 0 then
  $mnode1Status = $data2_1 
elif $loop_cnt == 1 then
  $mnode1Status = $data2_5 
elif $loop_cnt == 2 then
  $mnode1Status = $data2_7 
elif $loop_cnt == 3 then
  $mnode1Status = $data2_9 
else then
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
  return
endi

if $mnode1Status != offline then
  sleep 2000
  goto wait_mnode1_offline_0
endi



H
Hui Li 已提交
219
sql drop dnode $hostname1
H
Hui Li 已提交
220
system rm -rf ../../../sim/dnode1/data
H
Hui Li 已提交
221

H
Hui Li 已提交
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
$cnt = 0
wait_mnode4_slave_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
print show mnodes
sql show mnodes
if $rows != 3 then
  sleep 2000
  goto wait_mnode4_slave_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$mnode1Status = $data2_1
$mnode2Status = $data2_2
$mnode3Status = $data2_3
$mnode4Status = $data2_4
H
Hui Li 已提交
242

H
Hui Li 已提交
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
if $loop_cnt == 0 then
  $mnode4Status = $data2_4 
elif $loop_cnt == 1 then
  $mnode4Status = $data2_6 
elif $loop_cnt == 2 then
  $mnode4Status = $data2_8 
else then
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
  return
endi

if $mnode4Status != slave then
  sleep 2000
  goto wait_mnode4_slave_0
endi

print ============== step7: stop dnode2, waiting dnode4 
H
Hui Li 已提交
260 261
system sh/exec.sh -n dnode2 -s stop -x SIGINT

H
Hui Li 已提交
262 263 264 265 266 267 268
$cnt = 0
wait_dnode2_offline_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
H
Hui Li 已提交
269 270 271 272
if $rows != 3 then
  sleep 2000
  goto wait_dnode2_offline_0
endi
H
Hui Li 已提交
273 274 275 276 277 278 279 280
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 
H
Hui Li 已提交
281

H
Hui Li 已提交
282 283 284 285 286 287 288 289 290 291 292 293
if $dnode2Status != offline then
  sleep 2000
  goto wait_dnode2_offline_0
endi

sleep 3000
print show mnodes
sql show mnodes
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
H
Hui Li 已提交
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322

print ============== step8: restart dnode2, then wait sync end
system sh/exec.sh -n dnode2 -s start

$cnt = 0
wait_dnode2_ready_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode2_ready_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 

if $dnode2Status != ready then
  sleep 2000
  goto wait_dnode2_ready_0
endi

H
Hui Li 已提交
323 324 325 326 327 328 329
sleep 3000
print show mnodes
sql show mnodes
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
H
Hui Li 已提交
330 331 332

print ============== step9: stop dnode3, then wait sync end
system sh/exec.sh -n dnode3 -s stop -x SIGINT
H
Hui Li 已提交
333
sleep 3000
H
Hui Li 已提交
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361

$cnt = 0
wait_dnode3_offline_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode3_offline_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 

if $dnode3Status != offline then
  sleep 2000
  goto wait_dnode3_offline_0
endi

print ============== step10: restart dnode3, then wait sync end
system sh/exec.sh -n dnode3 -s start
H
Hui Li 已提交
362
sleep 3000
H
Hui Li 已提交
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390

$cnt = 0
wait_dnode3_ready_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode3_ready_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 

if $dnode3Status != ready then
  sleep 2000
  goto wait_dnode3_ready_0
endi

print ============== step11: stop dnode4, then wait sync end
system sh/exec.sh -n dnode4 -s stop -x SIGINT
H
Hui Li 已提交
391
sleep 3000
H
Hui Li 已提交
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419

$cnt = 0
wait_dnode4_offline_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode4_offline_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
#$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode4Status = $data4_4 
elif $loop_cnt == 1 then
  $dnode4Status = $data4_6 
elif $loop_cnt == 2 then
  $dnode4Status = $data4_8 
else then
H
Hui Li 已提交
420
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
421 422 423 424 425 426 427 428 429 430
  return
endi

if $dnode4Status != offline then
  sleep 2000
  goto wait_dnode4_offline_0
endi

print ============== step12: restart dnode4, then wait sync end
system sh/exec.sh -n dnode4 -s start
H
Hui Li 已提交
431
sleep 3000
H
Hui Li 已提交
432 433

$cnt = 0
H
Hui Li 已提交
434
wait_dnode4_ready_1:
H
Hui Li 已提交
435 436 437 438 439 440 441
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
H
Hui Li 已提交
442
  goto wait_dnode4_ready_1
H
Hui Li 已提交
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
#$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode4Status = $data4_4 
elif $loop_cnt == 1 then
  $dnode4Status = $data4_6 
elif $loop_cnt == 2 then
  $dnode4Status = $data4_8 
else then
H
Hui Li 已提交
460
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
461 462 463 464 465
  return
endi

if $dnode4Status != ready then
  sleep 2000
H
Hui Li 已提交
466
  goto wait_dnode4_ready_1
H
Hui Li 已提交
467 468 469 470
endi

print ============== step13: alter replica 2
sql alter database $db replica 2
H
Hui Li 已提交
471 472
sql show databases
print $data00  $data01  $data02  $data03  $data04  $data05  $data06  $data07   $data08  $data09 
H
Hui Li 已提交
473

H
Hui Li 已提交
474
if $data04 != 2 then
H
Hui Li 已提交
475
  print rplica is not modify to 2, error!!!!!!
H
Hui Li 已提交
476
  return -1
H
Hui Li 已提交
477 478 479 480
endi

print ============== step14: stop and drop dnode4, then remove data dir of dnode4 
system sh/exec.sh -n dnode4 -s stop -x SIGINT
H
Hui Li 已提交
481
sleep 3000
H
Hui Li 已提交
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509

$cnt = 0
wait_dnode4_offline_1:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode4_offline_1
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
 
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
#$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode4Status = $data4_4 
elif $loop_cnt == 1 then
  $dnode4Status = $data4_6 
elif $loop_cnt == 2 then
  $dnode4Status = $data4_8 
else then
H
Hui Li 已提交
510
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
511 512 513 514 515 516 517 518
  return
endi

if $dnode4Status != offline then
  sleep 2000
  goto wait_dnode4_offline_1
endi

H
Hui Li 已提交
519
sleep 3000
H
Hui Li 已提交
520
sql drop dnode $hostname4
H
Hui Li 已提交
521
system rm -rf ../../../sim/dnode4/data
H
Hui Li 已提交
522 523 524 525


print ============== step15: alter replica 1
sql alter database $db replica 1
H
Hui Li 已提交
526 527 528
sql show databases
print $data00  $data01  $data02  $data03  $data04  $data05  $data06  $data07   $data08  $data09
if $data04 != 1 then
H
Hui Li 已提交
529
  print rplica is not modify to 1, error!!!!!!
H
Hui Li 已提交
530
  return -1
H
Hui Li 已提交
531 532 533 534
endi


print ============== step16: alter replica 2
H
Hui Li 已提交
535 536 537 538
sql alter database $db replica 2
sql show databases
print $data00  $data01  $data02  $data03  $data04  $data05  $data06  $data07   $data08  $data09
if $data04 != 2 then
H
Hui Li 已提交
539
  print rplica is not modify to 2, error!!!!!!
H
Hui Li 已提交
540
  return -1
H
Hui Li 已提交
541 542 543
endi

print ============== step17: start dnode1 and add into cluster, then wait dnode1 ready
H
Hui Li 已提交
544 545 546
system sh/cfg.sh -n dnode1 -c first -v $hostname2
system sh/cfg.sh -n dnode1 -c second -v $hostname3

H
Hui Li 已提交
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
system sh/exec.sh -n dnode1 -s start
sql create dnode $hostname1

wait_dnode1_ready_0:
$cnt = $cnt + 1
if $cnt == 10 then
  return -1
endi
sql show dnodes
if $rows != 3 then
  sleep 2000
  goto wait_dnode1_ready_0
endi
print $data0_1  $data1_1  $data2_1  $data3_1  $data4_1
print $data0_2  $data1_2  $data2_2  $data3_2  $data4_2
print $data0_3  $data1_3  $data2_3  $data3_3  $data4_3
print $data0_4  $data1_4  $data2_4  $data3_4  $data4_4
H
Hui Li 已提交
564
print $data0_5  $data1_5  $data2_5  $data3_5  $data4_5
H
Hui Li 已提交
565 566 567 568 569 570 571
#$dnode1Status = $data4_1  
$dnode2Status = $data4_2
$dnode3Status = $data4_3  
$dnode4Status = $data4_4 

if $loop_cnt == 0 then
  $dnode1Status = $data4_5 
H
Hui Li 已提交
572
elif $loop_cnt == 1 then
H
Hui Li 已提交
573
  $dnode1Status = $data4_7 
H
Hui Li 已提交
574 575
elif $loop_cnt == 2 then
  $dnode1Status = $data4_9
H
Hui Li 已提交
576
else then
H
Hui Li 已提交
577
  print **** **** **** END loop cluster do (loop_cnt: $loop_cnt )**** **** **** ****
H
Hui Li 已提交
578 579 580 581 582 583 584 585 586 587
  return
endi

if $dnode1Status != ready then
  sleep 2000
  goto wait_dnode1_ready_0
endi

print ============== step18: alter replica 3
sql alter database $db replica 3
H
Hui Li 已提交
588 589 590
sql show databases
print $data00  $data01  $data02  $data03  $data04  $data05  $data06  $data07   $data08  $data09
if $data04 != 3 then
H
Hui Li 已提交
591
  print rplica is not modify to 3, error!!!!!!
H
Hui Li 已提交
592
  return -1
H
Hui Li 已提交
593 594
endi

H
Hui Li 已提交
595
print **** **** **** (loop_cnt: $loop_cnt ) end, continue...... **** **** **** ****
H
Hui Li 已提交
596 597
$loop_cnt = $loop_cnt + 1
goto loop_cluster_do