delete_writing.sim 532 字节
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

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 已提交
11
run_back tsim/table/back_insert.sim
12 13 14 15
sleep 1000

print ======== step1 
$x = 1 	
S
Shengliang Guan 已提交
16
while $x < 10
17 18 19 20 21 22 23 24 25 26 27 28 29

    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