delete_writing2.sim 878 字节
Newer Older
1 2 3 4 5
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect

G
Ganlin Zhao 已提交
6
sql create database db
7 8 9 10 11 12 13
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)

G
Ganlin Zhao 已提交
14
sql create database db3
15 16 17
sql create table db3.tb3 (ts timestamp, i int)
sql insert into db3.tb3 values(now, 1)

G
Ganlin Zhao 已提交
18
sql create database db4
19 20 21 22
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
sleep 1000

G
Ganlin Zhao 已提交
26 27
print ======== step1
$x = 1
28 29 30
while $x < 10

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

G
Ganlin Zhao 已提交
33
	sql create database db
34 35
	sql create table db.tb (ts timestamp, i int)

S
Shengliang Guan 已提交
36
	sleep 1000
G
Ganlin Zhao 已提交
37

38 39 40
	$x = $x + 1
endw

G
Ganlin Zhao 已提交
41
system sh/exec.sh -n dnode1 -s stop -x SIGINT