delete_writing.sim 611 字节
Newer Older
1 2
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
S
Shengliang Guan 已提交
3 4
system sh/exec.sh -n dnode1 -s start
sql connect
5 6 7 8 9 10 11 12 13 14

print ========= start dnodes
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)

print ======== start back
S
Shengliang Guan 已提交
15
run_back tsim/table/back_insert.sim
16 17 18 19
sleep 1000

print ======== step1 
$x = 1 	
S
Shengliang Guan 已提交
20
while $x < 10
21 22 23 24 25 26 27 28 29 30 31 32 33

    print drop table times $x
	sql drop table db.tb -x step1
	step1:

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

	sleep 1000
	
	$x = $x + 1
endw

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