提交 34b056b4 编写于 作者: S Shengliang Guan

Merge remote-tracking branch 'origin/develop' into feature/platform

...@@ -52,7 +52,8 @@ matrix: ...@@ -52,7 +52,8 @@ matrix:
cd ${TRAVIS_BUILD_DIR}/debug cd ${TRAVIS_BUILD_DIR}/debug
make install > /dev/null || travis_terminate $? make install > /dev/null || travis_terminate $?
pip3 install numpy py3ver=`python3 --version|awk '{print $2}'|cut -d "." -f 1,2` && apt install python$py3ver-dev
pip3 install psutil
pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/
cd ${TRAVIS_BUILD_DIR}/tests cd ${TRAVIS_BUILD_DIR}/tests
......
...@@ -57,10 +57,10 @@ while $i < $tblEnd ...@@ -57,10 +57,10 @@ while $i < $tblEnd
endw endw
sql select count(*) from $tb sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ************ client-01 insert data error ***** ***** print ************ client-01 insert data into $tb error ***** *****
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-02- $preBinary = ' . client-02-
############################################################### ###############################################################
sql connect sql connect
...@@ -31,13 +31,14 @@ $rowsPerTbl = 0 ...@@ -31,13 +31,14 @@ $rowsPerTbl = 0
$ts = $tsStart $ts = $tsStart
$rowsPerLoop = 160 $rowsPerLoop = 160
$loop_cnt = 0
loop_run: loop_run:
print ================ client-02 start loop insert data print ================ client-02 start loop insert data ( loop_cnt: $loop_cnt )
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -46,23 +47,24 @@ while $i < $tblEnd ...@@ -46,23 +47,24 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ************ client-02 insert data error ***** ***** print ************ client-02 insert data into $tb error ***** *****
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
$loop_cnt = $loop_cnt + 1
goto loop_run goto loop_run
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-03- $preBinary = ' . client-03-
$t2Binary = ' . client-03-
############################################################### ###############################################################
sql connect sql connect
...@@ -33,16 +32,17 @@ $rowsPerTbl = 0 ...@@ -33,16 +32,17 @@ $rowsPerTbl = 0
$ts = $tsStart $ts = $tsStart
$rowsPerLoop = 160 $rowsPerLoop = 160
$loop_cnt = 0
loop_run: loop_run:
print ================ client-03 start loop insert data print ================ client-03 start loop insert data ( loop_cnt: $loop_cnt )
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$t2Binary = ' . $i $t2Binary = $preBinary . $i
$t2Binary = $t2Binary . ' $t2Binary = $t2Binary . '
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -51,32 +51,33 @@ while $i < $tblEnd ...@@ -51,32 +51,33 @@ while $i < $tblEnd
sql insert into $tb using $stb tags ( $i , $t2Binary ) values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb using $stb tags ( $i , $t2Binary ) values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ****** client-3 insert data into $tblStart error *** print ****** client-3 insert data into $tb error ***
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
sql select count(*) from $stb sql select count(*) from $stb
print data00 $data00 totalRows $totalRows
if $data00 != $totalRows then if $data00 != $totalRows then
print data00 $data00 totalRows $totalRows
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ***** client-3 insert data into $stbl error ******** print ***** client-3 insert data into $stbl error ********
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
$loop_cnt = $loop_cnt + 1
goto loop_run goto loop_run
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-04- $preBinary = ' . client-04-
############################################################### ###############################################################
$totalRows = 0 $totalRows = 0
...@@ -35,13 +35,13 @@ $rowsPerLoop = 160 ...@@ -35,13 +35,13 @@ $rowsPerLoop = 160
$loopCnt = 0 $loopCnt = 0
loop_run: loop_run:
print ================ client-04 start loop insert data print ================ client-04 start loop insert data ( loopCnt: $loopCnt )
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -50,22 +50,22 @@ while $i < $tblEnd ...@@ -50,22 +50,22 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ************ client-04 insert data into $tb error ***** *****
print ************ client-04 insert data error ***** ***** print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-05- $preBinary = ' . client-05-
############################################################### ###############################################################
$totalRows = 0 $totalRows = 0
...@@ -35,12 +35,12 @@ $rowsPerLoop = 160 ...@@ -35,12 +35,12 @@ $rowsPerLoop = 160
$loopCnt = 0 $loopCnt = 0
loop_run: loop_run:
print ================ client-05 start loop insert data print ================ client-05 start loop insert data ( loopCnt: $loopCnt )
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -49,22 +49,22 @@ while $i < $tblEnd ...@@ -49,22 +49,22 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ************ client-05 insert data into $tb error ***** *****
print ************ client-05 insert data error ***** ***** print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
......
...@@ -6,11 +6,13 @@ ...@@ -6,11 +6,13 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-06- $preBinary = ' . client-06-
$numPerUpdateTbl = 2000 $numPerUpdateTbl = 2000
############################################################### ###############################################################
$totalRows = 0 $totalRows = 0
$dropTblStart = $tblStart
$dropTblEnd = $dropTblStart
sql connect sql connect
...@@ -20,7 +22,7 @@ sql create database if not exists $db replica 2 ...@@ -20,7 +22,7 @@ sql create database if not exists $db replica 2
sql use $db sql use $db
init_lable: init_lable:
print ================ create table $tb (ts timestamp, c1 int, c2 binary(16)) print ================ create table $tb [ from $tblStart to $tblEnd ] (ts timestamp, c1 int, c2 binary(16))
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
...@@ -30,8 +32,8 @@ while $i < $tblEnd ...@@ -30,8 +32,8 @@ while $i < $tblEnd
$i = $i + 1 $i = $i + 1
endw endw
$dropTblStart = $tblStart $dropTblStart = $dropTblEnd
$dropTblEnd = $tblStart + $numPerUpdateTbl $dropTblEnd = $dropTblStart + $numPerUpdateTbl
$tblStart = $tblEnd $tblStart = $tblEnd
$tblEnd = $tblEnd + $numPerUpdateTbl $tblEnd = $tblEnd + $numPerUpdateTbl
...@@ -43,12 +45,12 @@ $rowsPerLoop = 160 ...@@ -43,12 +45,12 @@ $rowsPerLoop = 160
$loopCnt = 0 $loopCnt = 0
loop_run: loop_run:
print ================ client-06 start loop insert data print ================ client-06 start loop insert data from $dropTblStart to $tblStart ( loopCnt: $loopCnt )
$i = $dropTblStart $i = $dropTblStart
while $i < $tblEnd while $i < $tblStart
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -57,29 +59,29 @@ while $i < $tblEnd ...@@ -57,29 +59,29 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $dropTblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ************ client-06 insert data into $tb error ***** *****
print ************ client-06 insert data error ***** ***** print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
$loopCnt = $loopCnt + 1 $loopCnt = $loopCnt + 1
if $loopCnt > 100 then if $loopCnt > 2 then
print ================ client-06 drop table from $dropTblStart to $dropTblEnd
$i = $dropTblStart $i = $dropTblStart
while $i < $dropTblEnd while $i < $dropTblEnd
$tb = tb . $i $tb = tb . $i
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-07- $preBinary = ' . client-07-
############################################################### ###############################################################
$totalRows = 0 $totalRows = 0
...@@ -35,12 +35,12 @@ $rowsPerLoop = 160 ...@@ -35,12 +35,12 @@ $rowsPerLoop = 160
$loopCnt = 0 $loopCnt = 0
loop_run: loop_run:
print ================ client-07 start loop insert data print ================ client-07 start loop insert data ( loopCnt: $loopCnt )
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -49,22 +49,22 @@ while $i < $tblEnd ...@@ -49,22 +49,22 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ************ client-07 insert data into $tb error ***** *****
print ************ client-07 insert data error ***** ***** print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
$tblStart = 0 $tblStart = 0
$tblEnd = 10000 $tblEnd = 10000
$tsStart = 1325347200000 # 2012-01-01 00:00:00.000 $tsStart = 1325347200000 # 2012-01-01 00:00:00.000
$c2Binary = ' . client-06- $preBinary = ' . client-08-
$numPerUpdateTbl = 2000 $numPerUpdateTbl = 2000
############################################################### ###############################################################
...@@ -43,12 +43,12 @@ $rowsPerLoop = 40 ...@@ -43,12 +43,12 @@ $rowsPerLoop = 40
$loopCnt = 0 $loopCnt = 0
loop_run: loop_run:
print ================ client-06 start loop insert data print ================ client-08 start loop insert data ( loopCnt: $loopCnt )
$i = $dropTblStart $i = $dropTblStart
while $i < $tblEnd while $i < $tblEnd
$tb = tb . $i $tb = tb . $i
$c2Binary = $c2Binary . $i $c2Binary = $preBinary . $i
$c2Binary = $c2Binary . ' $c2Binary = $c2Binary . '
$x = 0 $x = 0
...@@ -57,22 +57,22 @@ while $i < $tblEnd ...@@ -57,22 +57,22 @@ while $i < $tblEnd
sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary ) sql insert into $tb values ( $ts + 1a , $x , $c2Binary ) ( $ts + 3a , $x , $c2Binary ) ( $ts + 5a , $x , $c2Binary ) ( $ts + 7a , $x , $c2Binary ) ( $ts + 9a , $x , $c2Binary ) ( $ts + 11a , $x , $c2Binary ) ( $ts + 13a , $x , $c2Binary ) ( $ts + 15a , $x , $c2Binary ) ( $ts + 17a , $x , $c2Binary ) ( $ts + 19a , $x , $c2Binary ) ( $ts + 21a , $x , $c2Binary ) ( $ts + 23a , $x , $c2Binary ) ( $ts + 25a , $x , $c2Binary ) ( $ts + 27a , $x , $c2Binary ) ( $ts + 29a , $x , $c2Binary ) ( $ts + 31a , $x , $c2Binary ) ( $ts + 33a , $x , $c2Binary ) ( $ts + 35a , $x , $c2Binary ) ( $ts + 37a , $x , $c2Binary ) ( $ts + 39a , $x , $c2Binary )
$x = $x + 40 $x = $x + 40
$ts = $ts + 40a $ts = $ts + 40a
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
endw endw
if $i == $tblStart then
$rowsPerTbl = $rowsPerTbl + $x
endi
$totalRows = $totalRows + $x $totalRows = $totalRows + $x
$i = $i + 1 $i = $i + 1
endw endw
sql select count(*) from $tblStart sql select count(*) from $tb
print data00 $data00 rowsPerTbl $rowsPerTbl
if $data00 != $rowsPerTbl then if $data00 != $rowsPerTbl then
print data00 $data00 rowsPerTbl $rowsPerTbl print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ print ************ client-08 insert data into $tb error ***** *****
print ************ client-06 insert data error ***** ***** print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return -1 return -1
endi endi
......
...@@ -91,14 +91,14 @@ sql create dnode $hostname3 ...@@ -91,14 +91,14 @@ sql create dnode $hostname3
sleep 3000 sleep 3000
sleep 3000 sleep 3000
print ============== step3: start back client-01.sim print ============== step3: start back client-01.sim
run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim #run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-02.sim
#run_back unique/clusterSimCase/client-03.sim
run_back unique/clusterSimCase/client-04.sim
#run_back unique/clusterSimCase/client-05.sim
#run_back unique/clusterSimCase/client-06.sim
#run_back unique/clusterSimCase/client-07.sim
#run_back unique/clusterSimCase/client-08.sim
#run_back unique/clusterSimCase/client-01.sim #run_back unique/clusterSimCase/client-01.sim
#run_back unique/clusterSimCase/client-01.sim #run_back unique/clusterSimCase/client-01.sim
sleep 20000 sleep 20000
...@@ -242,4 +242,7 @@ endi ...@@ -242,4 +242,7 @@ endi
sleep 3000 sleep 3000
print **** **** **** (loop_cnt: $loop_cnt ) end, continue...... **** **** **** **** print **** **** **** (loop_cnt: $loop_cnt ) end, continue...... **** **** **** ****
$loop_cnt = $loop_cnt + 1 $loop_cnt = $loop_cnt + 1
if $loop_cnt == 50 then
return 0
endi
goto loop_cluster_do goto loop_cluster_do
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册