mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* restore .gitmodules * Revert "[TD-13408]<test>: move tests out" This reverts commitf80a4ca49f. * revertf80a4ca49f* immigrate file change from stand-alone repo to TDengine for 3.0 * remove tests repository for Jenkinsfile2 Co-authored-by: tangfangzhi <fztang@taosdata.com>
43 lines
No EOL
1.5 KiB
Text
43 lines
No EOL
1.5 KiB
Text
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/cfg.sh -n dnode1 -c wallevel -v 2
|
|
system sh/cfg.sh -n dnode2 -c wallevel -v 2
|
|
system sh/cfg.sh -n dnode3 -c wallevel -v 2
|
|
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/exec.sh -n dnode1 -s start
|
|
sql connect
|
|
sql create dnode $hostname2
|
|
sql create dnode $hostname3
|
|
system sh/exec.sh -n dnode2 -s start
|
|
system sh/exec.sh -n dnode3 -s start
|
|
|
|
sql create database db replica 3
|
|
sql use db
|
|
sql create table db.mt (ts timestamp, f1 float, f2 float, f3 float, f4 float, f5 float, f6 float, f7 float, f8 float, f9 float, f10 float) tags (t1 int, t2 int)
|
|
sql create table db.tb1 using db.mt tags(1, 2)
|
|
sleep 3001
|
|
|
|
$x = 1000
|
|
while $x < 1010
|
|
sql insert into tb1 values (now+1s , $x , $x , $x , $x , $x , $x , $x , $x , $x , $x )
|
|
$x = $x + 1
|
|
endw
|
|
|
|
sql_error create database d1 replica 2 wallevel 0
|
|
sql_error create database d2 replica 1 wallevel 0
|
|
sql_error alter database d2 replica 2
|
|
|
|
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 |