delete_writing2.sim 885 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect

sql create database db 
sql create table db.tb (ts timestamp, i int)
sql insert into db.tb values(now, 1)

sql create database db2
sql create table db2.tb2 (ts timestamp, i int)
sql insert into db2.tb2 values(now, 1)

sql create database db3 
sql create table db3.tb3 (ts timestamp, i int)
sql insert into db3.tb3 values(now, 1)

sql create database db4 
sql create table db4.tb4 (ts timestamp, i int)
sql insert into db4.tb4 values(now, 1)

print ======== start back
S
Shengliang Guan 已提交
23
run_back tsim/db/back_insert.sim
24 25 26 27 28 29 30
sleep 1000

print ======== step1 
$x = 1 	
while $x < 10

    print drop database times $x
S
Shengliang Guan 已提交
31
	sql drop database if exists db
32 33 34 35

	sql create database db 
	sql create table db.tb (ts timestamp, i int)

S
Shengliang Guan 已提交
36
	sleep 1000
37 38 39 40 41
	
	$x = $x + 1
endw

system sh/exec.sh -n dnode1 -s stop -x SIGINT