提交 39e60bf3 编写于 作者: H Haojun Liao

[TD-225]update the sim

上级 2e290b12
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = m_alt_db $dbPrefix = m_alt_db
...@@ -114,7 +114,7 @@ endi ...@@ -114,7 +114,7 @@ endi
sql drop table tb sql drop table tb
sql drop table mt sql drop table mt
sleep 500 sleep 100
### ALTER TABLE WHILE STREAMING [TBASE271] ### ALTER TABLE WHILE STREAMING [TBASE271]
#sql create table tb1 (ts timestamp, c1 int, c2 nchar(5), c3 int) #sql create table tb1 (ts timestamp, c1 int, c2 nchar(5), c3 int)
#sql create table strm as select count(*), avg(c1), first(c2), sum(c3) from tb1 interval(2s) #sql create table strm as select count(*), avg(c1), first(c2), sum(c3) from tb1 interval(2s)
...@@ -147,7 +147,7 @@ sleep 500 ...@@ -147,7 +147,7 @@ sleep 500
#sql alter table tb1 add column c3 int #sql alter table tb1 add column c3 int
#sleep 3000 #sleep 3000
#sql insert into tb1 values (now, 3, 'taos', 3); #sql insert into tb1 values (now, 3, 'taos', 3);
#sleep 500 #sleep 100
#sql select * from strm #sql select * from strm
#if $rows != 3 then #if $rows != 3 then
# return -1 # return -1
...@@ -186,7 +186,7 @@ sql create database $db ...@@ -186,7 +186,7 @@ sql create database $db
sql use $db sql use $db
sql create table mt (ts timestamp, c1 int, c2 nchar(7), c3 int) tags (t1 int) sql create table mt (ts timestamp, c1 int, c2 nchar(7), c3 int) tags (t1 int)
sql create table tb using mt tags(1) sql create table tb using mt tags(1)
sleep 500 sleep 100
sql insert into tb values ('2018-11-01 16:30:00.000', 1, 'insert', 1) sql insert into tb values ('2018-11-01 16:30:00.000', 1, 'insert', 1)
sql alter table mt drop column c3 sql alter table mt drop column c3
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
sql reset query cache sql reset query cache
...@@ -87,7 +87,7 @@ if $data13 != NULL then ...@@ -87,7 +87,7 @@ if $data13 != NULL then
return -1 return -1
endi endi
sleep 500 sleep 100
print ================== insert values into table print ================== insert values into table
sql insert into car1 values (now, 1, 1,1 ) (now +1s, 2,2,2,) car2 values (now, 1,3,3) sql insert into car1 values (now, 1, 1,1 ) (now +1s, 2,2,2,) car2 values (now, 1,3,3)
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ========== alter_stable.sim print ========== alter_stable.sim
......
...@@ -4,7 +4,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -4,7 +4,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
...@@ -212,7 +212,7 @@ sleep 3000 ...@@ -212,7 +212,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use $db sql use $db
#### auto create multiple tables #### auto create multiple tables
......
...@@ -4,7 +4,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 1 ...@@ -4,7 +4,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c ctime -v 30 system sh/cfg.sh -n dnode1 -c ctime -v 30
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = db $dbPrefix = db
...@@ -49,7 +49,7 @@ while $t < $tbNum ...@@ -49,7 +49,7 @@ while $t < $tbNum
endw endw
print ====== tables created print ====== tables created
sleep 500 sleep 100
sql drop table tb2 sql drop table tb2
$x = 0 $x = 0
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
sql drop database if exists ecdb sql drop database if exists ecdb
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
#========================================= setup environment ================================ #========================================= setup environment ================================
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ========== columnValues.sim print ========== columnValues.sim
...@@ -21,6 +21,7 @@ run general/parser/columnValue_int.sim ...@@ -21,6 +21,7 @@ run general/parser/columnValue_int.sim
run general/parser/columnValue_bigint.sim run general/parser/columnValue_bigint.sim
run general/parser/columnValue_float.sim run general/parser/columnValue_float.sim
run general/parser/columnValue_double.sim run general/parser/columnValue_double.sim
run general/parser/columnValue_unsign.sim
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
...@@ -374,9 +374,9 @@ endi ...@@ -374,9 +374,9 @@ endi
## case 04: illegal input ## case 04: illegal input
################## when overflow, auto set max ################## when overflow, auto set max
sql create table st_bigint_e0 using mt_bigint tags (9223372036854775808) sql_error create table st_bigint_e0 using mt_bigint tags (9223372036854775808)
sql_error create table st_bigint_e0_1 using mt_bigint tags (-9223372036854775808) sql_error create table st_bigint_e0_1 using mt_bigint tags (-9223372036854775808)
sql create table st_bigint_e0_2 using mt_bigint tags (92233720368547758080) sql_error create table st_bigint_e0_2 using mt_bigint tags (92233720368547758080)
sql_error create table st_bigint_e0_3 using mt_bigint tags (-9223372036854775809) sql_error create table st_bigint_e0_3 using mt_bigint tags (-9223372036854775809)
#sql_error create table st_bigint_e0 using mt_bigint tags (12.80) truncate integer part #sql_error create table st_bigint_e0 using mt_bigint tags (12.80) truncate integer part
#sql_error create table st_bigint_e0 using mt_bigint tags (-11.80) #sql_error create table st_bigint_e0 using mt_bigint tags (-11.80)
......
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
#### ####
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
#### ####
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
sleep 500 sleep 100
sql connect sql connect
sql create database if not exists db sql create database if not exists db
sql use db sql use db
......
sleep 100
sql connect
sql create database if not exists db
sql use db
sql drop table if exists mt_unsigned;
sql create table mt_unsigned (ts timestamp, a tinyint unsigned, b smallint unsigned, c int unsigned, d bigint unsigned, e tinyint, f smallint, g int, h bigint, j bool) tags (t1 tinyint unsigned, t2 smallint unsigned, t3 int unsigned, t4 bigint unsigned, t5 tinyint, t6 smallint, t7 int, t8 bigint);
sql create table mt_unsigned_1 using mt_unsigned tags(0, 0, 0, 0, 0, 0, 0, 0);
sql alter table mt_unsigned_1 set tag t1=138;
sql alter table mt_unsigned_1 set tag t2=32769;
sql alter table mt_unsigned_1 set tag t3=294967295;
sql alter table mt_unsigned_1 set tag t4=446744073709551615;
sql select t1,t2,t3,t4 from mt_unsigned_1
if $rows != 1 then
return -1
endi
print $data00, $data01, $data02, $data03
if $data00 != 138 then
print expect 138, actual: $data00
return -1
endi
if $data01 != 32769 then
return -1
endi
if $data02 != 294967295 then
return -1
endi
if $data03 != 446744073709551615 then
return -1
endi
sql_error sql alter table mt_unsigned_1 set tag t1 = 999;
sql_error sql alter table mt_unsigned_1 set tag t2 = 95535;
sql_error sql alter table mt_unsigned_1 set tag t3 = 8294967295l;
sql_error sql alter table mt_unsigned_1 set tag t4 = 19446744073709551615;
sql_error create table mt_unsigned_2 using mt_unsigned tags(-1, 0, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_3 using mt_unsigned tags(0, -1, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_4 using mt_unsigned tags(0, 0, -1, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_5 using mt_unsigned tags(0, 0, 0, -1, 0, 0, 0, 0);
sql_error create table mt_unsigned_2 using mt_unsigned tags(255, 0, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_3 using mt_unsigned tags(0, 65535, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_4 using mt_unsigned tags(0, 0, 4294967295, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_5 using mt_unsigned tags(0, 0, 0, 18446744073709551615, 0, 0, 0, 0);
sql_error create table mt_unsigned_2 using mt_unsigned tags(999, 0, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_3 using mt_unsigned tags(0, 95535, 0, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_4 using mt_unsigned tags(0, 0, 5294967295l, 0, 0, 0, 0, 0);
sql_error create table mt_unsigned_5 using mt_unsigned tags(0, 0, 0, 28446744073709551615u, 0, 0, 0, 0);
sql alter table mt_unsigned_1 set tag t1=NULL;
sql alter table mt_unsigned_1 set tag t2=NULL;
sql alter table mt_unsigned_1 set tag t3=NULL;
sql alter table mt_unsigned_1 set tag t4=NULL;
sql select t1,t2,t3,t4 from mt_unsigned_1
if $rows != 1 then
return -1;
endi
if $data00 != NULL then
print expect NULL, actual: $data00
return -1
endi
if $data01 != NULL then
return -1
endi
if $data02 != NULL then
return -1
endi
if $data03 != NULL then
return -1
endi
sql insert into mt_unsigned_1 values(now, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
sql insert into mt_unsigned_1 values(now, 1, 2, 3, 4, 5, 6, 7, 8, 9);
sql_error insert into mt_unsigned_1 values(now, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, -1, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, NULL, -1, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, NULL, NULL, -1, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, 255, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, 65535, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, NULL, 4294967295, NULL, NULL, NULL, NULL, NULL, NULL);
sql_error insert into mt_unsigned_1 values(now, NULL, NULL, NULL, 18446744073709551615, NULL, NULL, NULL, NULL, NULL);
sql select count(a),count(b),count(c),count(d), count(e) from mt_unsigned_1
if $rows != 1 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data01 != 1 then
return -1
endi
sql select a+b+c from mt_unsigned_1 where a is null;
\ No newline at end of file
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxTablesperVnode -v 100 system sh/cfg.sh -n dnode1 -c maxTablesperVnode -v 100
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sc_db $dbPrefix = sc_db
...@@ -84,10 +84,10 @@ print ================== restart server to commit data into disk ...@@ -84,10 +84,10 @@ print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000 sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
print ====== select from table and check num of rows returned print ====== select from table and check num of rows returned
sql use $db sql use $db
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ========== db name and table name check in create and drop, describe print ========== db name and table name check in create and drop, describe
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = m_fl_db $dbPrefix = m_fl_db
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = fl1_db $dbPrefix = fl1_db
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = m_fl_db $dbPrefix = m_fl_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxTablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxTablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = first_db $dbPrefix = first_db
...@@ -81,7 +81,7 @@ sleep 3000 ...@@ -81,7 +81,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/first_last_query.sim run general/parser/first_last_query.sim
...@@ -110,7 +110,7 @@ sleep 1000 ...@@ -110,7 +110,7 @@ sleep 1000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use test sql use test
sql select count(*), last(ts) from tm0 interval(1s) sql select count(*), last(ts) from tm0 interval(1s)
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = first_db $dbPrefix = first_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = m_func_db $dbPrefix = m_func_db
...@@ -274,7 +274,7 @@ sleep 1000 ...@@ -274,7 +274,7 @@ sleep 1000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use m_func_db0 sql use m_func_db0
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = group_db $dbPrefix = group_db
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = impt_db $dbPrefix = impt_db
...@@ -64,7 +64,7 @@ sleep 2000 ...@@ -64,7 +64,7 @@ sleep 2000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use $db sql use $db
sql select * from tb sql select * from tb
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1 system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c ctime -v 30 system sh/cfg.sh -n dnode1 -c ctime -v 30
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ic_db $dbPrefix = ic_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1 system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c ctime -v 30 system sh/cfg.sh -n dnode1 -c ctime -v 30
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ic_db $dbPrefix = ic_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1 system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/cfg.sh -n dnode1 -c ctime -v 30 system sh/cfg.sh -n dnode1 -c ctime -v 30
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ic_db $dbPrefix = ic_db
......
...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 2000 sleep 2000
sql connect sql connect
sleep 500 sleep 100
print ======================== dnode1 start print ======================== dnode1 start
sql create database mul_db sql create database mul_db
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
...@@ -103,7 +103,7 @@ if $rows != 1 then ...@@ -103,7 +103,7 @@ if $rows != 1 then
endi endi
sql drop database $db sql drop database $db
sleep 500 sleep 100
sql create database $db sql create database $db
sql use $db sql use $db
sql create table stb1 (ts timestamp, c1 int) tags(t1 int) sql create table stb1 (ts timestamp, c1 int) tags(t1 int)
...@@ -136,7 +136,7 @@ if $data21 != 1.000000000 then ...@@ -136,7 +136,7 @@ if $data21 != 1.000000000 then
endi endi
sql drop database $db sql drop database $db
sleep 500 sleep 100
sql create database $db sql create database $db
sql use $db sql use $db
sql create table stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 nchar(10), c6 binary(20)) tags(t1 int, t2 bigint, t3 double, t4 float, t5 nchar(10)) sql create table stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 nchar(10), c6 binary(20)) tags(t1 int, t2 bigint, t3 double, t4 float, t5 nchar(10))
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = intp_db $dbPrefix = intp_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = intp_db $dbPrefix = intp_db
......
...@@ -7,7 +7,7 @@ system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135 ...@@ -7,7 +7,7 @@ system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = join_db $dbPrefix = join_db
......
...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 ...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
sleep 500 sleep 100
$dbPrefix = join_m_db $dbPrefix = join_m_db
$tbPrefix = join_tb $tbPrefix = join_tb
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lr_db $dbPrefix = lr_db
...@@ -66,7 +66,7 @@ sleep 3000 ...@@ -66,7 +66,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/lastrow_query.sim run general/parser/lastrow_query.sim
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lr_db $dbPrefix = lr_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1 system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm_db $dbPrefix = lm_db
...@@ -70,7 +70,7 @@ sleep 3000 ...@@ -70,7 +70,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/limit_tb.sim run general/parser/limit_tb.sim
run general/parser/limit_stb.sim run general/parser/limit_stb.sim
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1 system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm1_db $dbPrefix = lm1_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm1_db $dbPrefix = lm1_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm1_db $dbPrefix = lm1_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1 system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm1_db $dbPrefix = lm1_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c rowsInFileBlock -v 255 system sh/cfg.sh -n dnode1 -c rowsInFileBlock -v 255
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm2_db $dbPrefix = lm2_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm2_db $dbPrefix = lm2_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c rowsInFileBlock -v 255 system sh/cfg.sh -n dnode1 -c rowsInFileBlock -v 255
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm2_db $dbPrefix = lm2_db
...@@ -69,7 +69,7 @@ print ====== tables created ...@@ -69,7 +69,7 @@ print ====== tables created
print ================== restart server to commit data into disk print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 500 sleep 100
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm_db $dbPrefix = lm_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = lm_db $dbPrefix = lm_db
......
...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = mb_db $dbPrefix = mb_db
......
...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -5,7 +5,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ======================== dnode1 start print ======================== dnode1 start
......
...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3 system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 3
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
print ========== NULL_char.sim print ========== NULL_char.sim
...@@ -251,7 +251,7 @@ endi ...@@ -251,7 +251,7 @@ endi
################### nchar ################### nchar
sql alter table st41 set tag tag_nchar = "��˼����" sql alter table st41 set tag tag_nchar = "��˼����"
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41 sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41
#sleep 500 #sleep 100
#if $data01 != ��˼���� then #if $data01 != ��˼���� then
# print ==== expect ��˼����, actually $data01 # print ==== expect ��˼����, actually $data01
# return -1 # return -1
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = group_db $dbPrefix = group_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 200 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 200
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sc_db $dbPrefix = sc_db
...@@ -121,9 +121,9 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT ...@@ -121,9 +121,9 @@ system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 3000 sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ====== server restart completed print ====== server restart completed
sleep 500 sleep 100
sql connect sql connect
sleep 500 sleep 100
sql use $db sql use $db
##### repeat test after server restart ##### repeat test after server restart
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 5 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 5
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sav_db $dbPrefix = sav_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = scd_db $dbPrefix = scd_db
...@@ -39,7 +39,7 @@ sleep 3000 ...@@ -39,7 +39,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use $db sql use $db
# generate some data in cache # generate some data in cache
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = select_tags_db $dbPrefix = select_tags_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1 system sh/cfg.sh -n dnode1 -c maxVgroupsPerDb -v 1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = db $dbPrefix = db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sr_db $dbPrefix = sr_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sr_db $dbPrefix = sr_db
......
...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c debugFlag -v 135 ...@@ -6,7 +6,7 @@ system sh/cfg.sh -n dnode1 -c debugFlag -v 135
system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135 system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = sliding_db $dbPrefix = sliding_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = slm_db $dbPrefix = slm_db
...@@ -101,7 +101,7 @@ sleep 3000 ...@@ -101,7 +101,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/slimit_query.sim run general/parser/slimit_query.sim
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = slm_alt_tg_db $dbPrefix = slm_alt_tg_db
...@@ -60,7 +60,7 @@ sleep 3000 ...@@ -60,7 +60,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/slimit1_query.sim run general/parser/slimit1_query.sim
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = slm_alt_tg_db $dbPrefix = slm_alt_tg_db
......
...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1 ...@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = slm_alt_tg_db $dbPrefix = slm_alt_tg_db
...@@ -175,7 +175,7 @@ sleep 3000 ...@@ -175,7 +175,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql use $db sql use $db
### repeat above queries ### repeat above queries
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = slm_db $dbPrefix = slm_db
......
...@@ -3,9 +3,9 @@ system sh/stop_dnodes.sh ...@@ -3,9 +3,9 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
sleep 500 sleep 100
$db = dytag_db $db = dytag_db
$tbNum = 10 $tbNum = 10
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$db = tf_db $db = tf_db
......
...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh ...@@ -3,7 +3,7 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0 system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ti_db $dbPrefix = ti_db
......
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ti_db $dbPrefix = ti_db
......
#run general/parser/alter.sim run general/parser/alter.sim
#sleep 500 sleep 100
#run general/parser/alter1.sim run general/parser/alter1.sim
#sleep 500 sleep 100
#run general/parser/alter_stable.sim run general/parser/alter_stable.sim
#sleep 500 sleep 100
#run general/parser/auto_create_tb.sim run general/parser/auto_create_tb.sim
#sleep 500 sleep 100
#run general/parser/auto_create_tb_drop_tb.sim run general/parser/auto_create_tb_drop_tb.sim
#sleep 500 sleep 100
#run general/parser/col_arithmetic_operation.sim run general/parser/col_arithmetic_operation.sim
#sleep 500 sleep 100
#run general/parser/columnValue.sim run general/parser/columnValue.sim
#sleep 500 sleep 100
#run general/parser/commit.sim run general/parser/commit.sim
#sleep 500 sleep 100
#run general/parser/create_db.sim run general/parser/create_db.sim
#sleep 500 sleep 100
#run general/parser/create_mt.sim run general/parser/create_mt.sim
#sleep 500 sleep 100
#run general/parser/create_tb.sim run general/parser/create_tb.sim
#sleep 500 sleep 100
#run general/parser/dbtbnameValidate.sim run general/parser/dbtbnameValidate.sim
#sleep 500 sleep 100
#run general/parser/fill.sim run general/parser/fill.sim
#sleep 500 sleep 100
#run general/parser/fill_stb.sim run general/parser/fill_stb.sim
#sleep 500 sleep 100
##run general/parser/fill_us.sim # #run general/parser/fill_us.sim #
#sleep 500 sleep 100
#run general/parser/first_last.sim run general/parser/first_last.sim
#sleep 500 sleep 100
#run general/parser/import_commit1.sim run general/parser/import_commit1.sim
#sleep 500 sleep 100
#run general/parser/import_commit2.sim run general/parser/import_commit2.sim
#sleep 500 sleep 100
#run general/parser/import_commit3.sim run general/parser/import_commit3.sim
#sleep 500 sleep 100
##run general/parser/import_file.sim #run general/parser/import_file.sim
#sleep 500 sleep 100
#run general/parser/insert_tb.sim run general/parser/insert_tb.sim
#sleep 500 sleep 100
#run general/parser/tags_dynamically_specifiy.sim run general/parser/tags_dynamically_specifiy.sim
#sleep 500 sleep 100
#run general/parser/interp.sim run general/parser/interp.sim
#sleep 500 sleep 100
#run general/parser/lastrow.sim run general/parser/lastrow.sim
sleep 500 sleep 100
run general/parser/limit.sim run general/parser/limit.sim
sleep 500 sleep 100
run general/parser/limit1.sim run general/parser/limit1.sim
sleep 500 sleep 100
run general/parser/limit1_tblocks100.sim run general/parser/limit1_tblocks100.sim
sleep 500 sleep 100
run general/parser/limit2.sim run general/parser/limit2.sim
sleep 500 sleep 100
run general/parser/mixed_blocks.sim run general/parser/mixed_blocks.sim
sleep 500 sleep 100
run general/parser/nchar.sim run general/parser/nchar.sim
sleep 500 sleep 100
run general/parser/null_char.sim run general/parser/null_char.sim
sleep 500 sleep 100
run general/parser/selectResNum.sim run general/parser/selectResNum.sim
sleep 500 sleep 100
run general/parser/select_across_vnodes.sim run general/parser/select_across_vnodes.sim
sleep 500 sleep 100
run general/parser/select_from_cache_disk.sim run general/parser/select_from_cache_disk.sim
sleep 500 sleep 100
run general/parser/set_tag_vals.sim run general/parser/set_tag_vals.sim
sleep 500 sleep 100
run general/parser/single_row_in_tb.sim run general/parser/single_row_in_tb.sim
sleep 500 sleep 100
run general/parser/slimit.sim run general/parser/slimit.sim
sleep 500 sleep 100
run general/parser/slimit1.sim run general/parser/slimit1.sim
sleep 500 sleep 100
run general/parser/slimit_alter_tags.sim run general/parser/slimit_alter_tags.sim
sleep 500 sleep 100
run general/parser/tbnameIn.sim run general/parser/tbnameIn.sim
sleep 500 sleep 100
run general/parser/slimit_alter_tags.sim # persistent failed run general/parser/slimit_alter_tags.sim # persistent failed
sleep 500 sleep 100
run general/parser/join.sim run general/parser/join.sim
sleep 500 sleep 100
run general/parser/join_multivnode.sim run general/parser/join_multivnode.sim
sleep 500 sleep 100
run general/parser/projection_limit_offset.sim run general/parser/projection_limit_offset.sim
sleep 500 sleep 100
run general/parser/select_with_tags.sim run general/parser/select_with_tags.sim
sleep 500 sleep 100
run general/parser/groupby.sim run general/parser/groupby.sim
sleep 500 sleep 100
run general/parser/tags_filter.sim run general/parser/tags_filter.sim
sleep 500 sleep 100
run general/parser/topbot.sim run general/parser/topbot.sim
sleep 500 sleep 100
run general/parser/union.sim run general/parser/union.sim
sleep 500 sleep 100
run general/parser/constCol.sim run general/parser/constCol.sim
sleep 500 sleep 100
run general/parser/where.sim run general/parser/where.sim
sleep 500 sleep 100
run general/parser/timestamp.sim run general/parser/timestamp.sim
sleep 500 sleep 100
run general/parser/sliding.sim run general/parser/sliding.sim
sleep 500 sleep 100
run general/parser/function.sim run general/parser/function.sim
...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ts_db $dbPrefix = ts_db
...@@ -59,10 +59,10 @@ run general/parser/timestamp_query.sim ...@@ -59,10 +59,10 @@ run general/parser/timestamp_query.sim
print ================== restart server to commit data into disk print ================== restart server to commit data into disk
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
sleep 500 sleep 100
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
run general/parser/timestamp_query.sim run general/parser/timestamp_query.sim
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = ts_db $dbPrefix = ts_db
......
...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 200 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 200
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = tb_db $dbPrefix = tb_db
...@@ -132,7 +132,7 @@ sleep 3000 ...@@ -132,7 +132,7 @@ sleep 3000
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
print ================== server restart completed print ================== server restart completed
sql connect sql connect
sleep 500 sleep 100
sql select count(*) from t1.test where ts>10000 and ts<90000 interval(5000a) sql select count(*) from t1.test where ts>10000 and ts<90000 interval(5000a)
if $rows != 3 then if $rows != 3 then
...@@ -169,7 +169,7 @@ endw ...@@ -169,7 +169,7 @@ endw
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
sleep 500 sleep 100
sql use db; sql use db;
$ts = 1000 $ts = 1000
...@@ -221,7 +221,7 @@ sql insert into t2 values('2020-2-2 1:1:1', 1); ...@@ -221,7 +221,7 @@ sql insert into t2 values('2020-2-2 1:1:1', 1);
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
sleep 500 sleep 100
sql use db sql use db
sql select count(*), first(ts), last(ts) from t2 interval(1d); sql select count(*), first(ts), last(ts) from t2 interval(1d);
......
...@@ -7,7 +7,7 @@ system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135 ...@@ -7,7 +7,7 @@ system sh/cfg.sh -n dnode1 -c rpcDebugFlag -v 135
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = union_db $dbPrefix = union_db
...@@ -103,7 +103,7 @@ while $i < $tbNum ...@@ -103,7 +103,7 @@ while $i < $tbNum
endw endw
print sleep 1sec. print sleep 1sec.
sleep 500 sleep 100
$i = 1 $i = 1
$tb = $tbPrefix . $i $tb = $tbPrefix . $i
......
...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0 ...@@ -5,7 +5,7 @@ system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablespervnode -v 4
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sleep 500 sleep 100
sql connect sql connect
$dbPrefix = wh_db $dbPrefix = wh_db
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册