Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a1b1b8ab
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a1b1b8ab
编写于
9月 07, 2020
作者:
R
root
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scripts
上级
07b38c1c
变更
49
显示空白变更内容
内联
并排
Showing
49 changed file
with
75 addition
and
75 deletion
+75
-75
src/plugins/monitor/src/monitorMain.c
src/plugins/monitor/src/monitorMain.c
+1
-1
tests/script/general/db/delete_reusevnode.sim
tests/script/general/db/delete_reusevnode.sim
+1
-1
tests/script/general/db/delete_reusevnode2.sim
tests/script/general/db/delete_reusevnode2.sim
+1
-1
tests/script/general/db/dropdnodes.sim
tests/script/general/db/dropdnodes.sim
+1
-1
tests/script/general/parser/first_last.sim
tests/script/general/parser/first_last.sim
+1
-1
tests/script/general/parser/groupby.sim
tests/script/general/parser/groupby.sim
+1
-1
tests/script/general/parser/join.sim
tests/script/general/parser/join.sim
+1
-1
tests/script/general/parser/join_multivnode.sim
tests/script/general/parser/join_multivnode.sim
+1
-1
tests/script/general/parser/lastrow.sim
tests/script/general/parser/lastrow.sim
+1
-1
tests/script/general/parser/mixed_blocks.sim
tests/script/general/parser/mixed_blocks.sim
+1
-1
tests/script/general/parser/projection_limit_offset.sim
tests/script/general/parser/projection_limit_offset.sim
+1
-1
tests/script/general/parser/select_with_tags.sim
tests/script/general/parser/select_with_tags.sim
+1
-1
tests/script/general/parser/single_row_in_tb.sim
tests/script/general/parser/single_row_in_tb.sim
+1
-1
tests/script/general/parser/slimit.sim
tests/script/general/parser/slimit.sim
+1
-1
tests/script/general/parser/timestamp.sim
tests/script/general/parser/timestamp.sim
+1
-1
tests/script/general/parser/where.sim
tests/script/general/parser/where.sim
+1
-1
tests/script/general/stable/dnode3.sim
tests/script/general/stable/dnode3.sim
+1
-1
tests/script/unique/arbitrator/dn3_mn1_vnode_change.sim
tests/script/unique/arbitrator/dn3_mn1_vnode_change.sim
+1
-1
tests/script/unique/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
...pt/unique/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
+1
-1
tests/script/unique/arbitrator/sync_replica3_createTable.sim
tests/script/unique/arbitrator/sync_replica3_createTable.sim
+2
-2
tests/script/unique/arbitrator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
...ator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
+2
-2
tests/script/unique/big/maxvnodes.sim
tests/script/unique/big/maxvnodes.sim
+1
-1
tests/script/unique/big/restartSpeed.sim
tests/script/unique/big/restartSpeed.sim
+1
-1
tests/script/unique/cluster/balance1.sim
tests/script/unique/cluster/balance1.sim
+8
-8
tests/script/unique/cluster/balance2.sim
tests/script/unique/cluster/balance2.sim
+3
-3
tests/script/unique/cluster/cluster_main.sim
tests/script/unique/cluster/cluster_main.sim
+1
-1
tests/script/unique/cluster/cluster_main0.sim
tests/script/unique/cluster/cluster_main0.sim
+1
-1
tests/script/unique/cluster/cluster_main1.sim
tests/script/unique/cluster/cluster_main1.sim
+1
-1
tests/script/unique/cluster/cluster_main2.sim
tests/script/unique/cluster/cluster_main2.sim
+1
-1
tests/script/unique/dnode/alternativeRole.sim
tests/script/unique/dnode/alternativeRole.sim
+1
-1
tests/script/unique/dnode/balance1.sim
tests/script/unique/dnode/balance1.sim
+4
-4
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+3
-3
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+3
-3
tests/script/unique/dnode/balancex.sim
tests/script/unique/dnode/balancex.sim
+3
-3
tests/script/unique/dnode/offline2.sim
tests/script/unique/dnode/offline2.sim
+1
-1
tests/script/unique/dnode/remove1.sim
tests/script/unique/dnode/remove1.sim
+3
-3
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+3
-3
tests/script/unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
+3
-3
tests/script/unique/stable/balance_replica1.sim
tests/script/unique/stable/balance_replica1.sim
+1
-1
tests/script/unique/stable/dnode2.sim
tests/script/unique/stable/dnode2.sim
+1
-1
tests/script/unique/stable/dnode2_stop.sim
tests/script/unique/stable/dnode2_stop.sim
+1
-1
tests/script/unique/stable/dnode3.sim
tests/script/unique/stable/dnode3.sim
+1
-1
tests/script/unique/stable/replica2_dnode4.sim
tests/script/unique/stable/replica2_dnode4.sim
+1
-1
tests/script/unique/stable/replica2_vnode3.sim
tests/script/unique/stable/replica2_vnode3.sim
+1
-1
tests/script/unique/stable/replica3_dnode6.sim
tests/script/unique/stable/replica3_dnode6.sim
+1
-1
tests/script/unique/stable/replica3_vnode3.sim
tests/script/unique/stable/replica3_vnode3.sim
+1
-1
tests/script/unique/stream/metrics_balance.sim
tests/script/unique/stream/metrics_balance.sim
+1
-1
tests/script/unique/stream/table_balance.sim
tests/script/unique/stream/table_balance.sim
+1
-1
tests/script/unique/stream/table_move.sim
tests/script/unique/stream/table_move.sim
+1
-1
未找到文件。
src/plugins/monitor/src/monitorMain.c
浏览文件 @
a1b1b8ab
...
...
@@ -184,7 +184,7 @@ static void monitorBuildMonitorSql(char *sql, int32_t cmd) {
if
(
cmd
==
MON_CMD_CREATE_DB
)
{
snprintf
(
sql
,
SQL_LENGTH
,
"create database if not exists %s replica 1 days 10 keep 30 cache %d "
"blocks %d
maxtables 16
precision 'us'"
,
"blocks %d precision 'us'"
,
tsMonitorDbName
,
TSDB_MIN_CACHE_BLOCK_SIZE
,
TSDB_MIN_TOTAL_BLOCKS
);
}
else
if
(
cmd
==
MON_CMD_CREATE_MT_DN
)
{
snprintf
(
sql
,
SQL_LENGTH
,
...
...
tests/script/general/db/delete_reusevnode.sim
浏览文件 @
a1b1b8ab
...
...
@@ -50,7 +50,7 @@ $tbPrefix = t
$i = 0
while $i < 10
$db = db . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table st (ts timestamp, i int) tags(j int);
...
...
tests/script/general/db/delete_reusevnode2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -8,7 +8,7 @@ sql connect
print ======== step1
sql create database db
maxTables 4
;
sql create database db;
sql use db
$tbPrefix = t
...
...
tests/script/general/db/dropdnodes.sim
浏览文件 @
a1b1b8ab
...
...
@@ -15,7 +15,7 @@ sql connect
sql create dnode $hostname2
sleep 2000
sql create database db
maxTables 4
sql create database db
sql use db
print ========== step1
...
...
tests/script/general/parser/first_last.sim
浏览文件 @
a1b1b8ab
...
...
@@ -22,7 +22,7 @@ $stb = $stbPrefix . $i
sql drop database $db -x step1
step1:
sql create database $db maxrows 400 cache 1
maxTables 4
sql create database $db maxrows 400 cache 1
sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int)
...
...
tests/script/general/parser/groupby.sim
浏览文件 @
a1b1b8ab
...
...
@@ -28,7 +28,7 @@ $tstart = 100000
sql drop database if exits $db -x step1
step1:
sql create database if not exists $db
maxTables 4
keep 36500
sql create database if not exists $db keep 36500
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
...
...
tests/script/general/parser/join.sim
浏览文件 @
a1b1b8ab
...
...
@@ -24,7 +24,7 @@ $tstart = 100000
sql drop database if exits $db -x step1
step1:
sql create database if not exists $db
maxTables 4
keep 36500
sql create database if not exists $db keep 36500
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
...
...
tests/script/general/parser/join_multivnode.sim
浏览文件 @
a1b1b8ab
...
...
@@ -22,7 +22,7 @@ $tstart = 100000
sql drop database if exits $db -x step1
step1:
sql create database if not exists $db
maxTables 4
keep 36500
sql create database if not exists $db keep 36500
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
...
...
tests/script/general/parser/lastrow.sim
浏览文件 @
a1b1b8ab
...
...
@@ -21,7 +21,7 @@ $stb = $stbPrefix . $i
sql drop database $db -x step1
step1:
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 int)
...
...
tests/script/general/parser/mixed_blocks.sim
浏览文件 @
a1b1b8ab
...
...
@@ -22,7 +22,7 @@ sql drop database if exists $db
$paramRows = 200
$rowNum = $paramRows * 4
$rowNum = $rowNum / 5
sql create database $db maxrows $paramRows
maxTables 4
sql create database $db maxrows $paramRows
print ====== create tables
sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 bool, c6 binary(10), c7 nchar(10)) tags(t1 int)
...
...
tests/script/general/parser/projection_limit_offset.sim
浏览文件 @
a1b1b8ab
...
...
@@ -22,7 +22,7 @@ $tstart = 100000
sql drop database if exits $db -x step1
step1:
sql create database if not exists $db
maxTables 4
keep 36500
sql create database if not exists $db keep 36500
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
...
...
tests/script/general/parser/select_with_tags.sim
浏览文件 @
a1b1b8ab
...
...
@@ -23,7 +23,7 @@ $tstart = 100000
sql drop database if exists $db -x step1
step1:
sql create database if not exists $db
maxTables 4
keep 36500
sql create database if not exists $db keep 36500
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int, t2 binary(12))
...
...
tests/script/general/parser/single_row_in_tb.sim
浏览文件 @
a1b1b8ab
...
...
@@ -15,7 +15,7 @@ $db = $dbPrefix
$stb = $stbPrefix
sql drop database if exists $db
sql create database $db maxrows 200
maxTables 4
sql create database $db maxrows 200
print ====== create tables
sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 bool, c6 binary(10), c7 nchar(10)) tags(t1 int)
...
...
tests/script/general/parser/slimit.sim
浏览文件 @
a1b1b8ab
...
...
@@ -21,7 +21,7 @@ $db = $dbPrefix . $i
$stb = $stbPrefix . $i
sql drop database if exists $db
sql create database $db maxrows 200 cache 16
maxTables 4
sql create database $db maxrows 200 cache 16
print ====== create tables
sql use $db
sql create table $stb (ts timestamp, c1 int, c2 bigint, c3 float, c4 double, c5 smallint, c6 tinyint, c7 bool, c8 binary(10), c9 nchar(10)) tags(t1 binary(15), t2 int, t3 bigint, t4 nchar(10), t5 double, t6 bool)
...
...
tests/script/general/parser/timestamp.sim
浏览文件 @
a1b1b8ab
...
...
@@ -20,7 +20,7 @@ $db = $dbPrefix . $i
$stb = $stbPrefix . $i
sql drop database if exists $db
sql create database $db maxrows 200
maxTables 4
sql create database $db maxrows 200
print ====== create tables
sql use $db
sql create table $stb (ts timestamp, c1 timestamp, c2 int) tags(t1 binary(20))
...
...
tests/script/general/parser/where.sim
浏览文件 @
a1b1b8ab
...
...
@@ -21,7 +21,7 @@ $mt = $mtPrefix . $i
sql drop database if exits $db -x step1
step1:
sql create database if not exists $db
maxTables 4
sql create database if not exists $db
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 binary(10), c9 nchar(9)) TAGS(t1 int)
...
...
tests/script/general/stable/dnode3.sim
浏览文件 @
a1b1b8ab
...
...
@@ -54,7 +54,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/arbitrator/dn3_mn1_vnode_change.sim
浏览文件 @
a1b1b8ab
...
...
@@ -61,7 +61,7 @@ $totalTableNum = 10
$sleepTimer = 3000
$db = db
sql create database $db replica 2
maxTables $totalTableNum
sql create database $db replica 2
sql use $db
# create table , insert data
...
...
tests/script/unique/arbitrator/dn3_mn1_vnode_corruptFile_online.sim
浏览文件 @
a1b1b8ab
...
...
@@ -61,7 +61,7 @@ $totalTableNum = 4
$sleepTimer = 3000
$db = db
sql create database $db cache 1 replica 2
maxTables $totalTableNum
sql create database $db cache 1 replica 2
sql use $db
# create table , insert data
...
...
tests/script/unique/arbitrator/sync_replica3_createTable.sim
浏览文件 @
a1b1b8ab
...
...
@@ -61,8 +61,8 @@ $totalTableNum = 20
$sleepTimer = 3000
$db = db
print create database $db replica 3
maxTables $totalTableNum
sql create database $db replica 3
maxTables $totalTableNum
print create database $db replica 3
sql create database $db replica 3
sql use $db
# create table , insert data
...
...
tests/script/unique/arbitrator/sync_replica3_dnodeChang_DropAddAlterTableDropDb.sim
浏览文件 @
a1b1b8ab
...
...
@@ -62,8 +62,8 @@ $sleepTimer = 3000
$maxTables = $totalTableNum * 2
$db = db
print create database $db replica 3
maxTables $maxTables
sql create database $db replica 3
maxTables $maxTables
print create database $db replica 3
sql create database $db replica 3
sql use $db
# create table , insert data
...
...
tests/script/unique/big/maxvnodes.sim
浏览文件 @
a1b1b8ab
...
...
@@ -18,7 +18,7 @@ print ========== prepare data
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database db blocks 3 cache 1
maxTables $maxTables
sql create database db blocks 3 cache 1
sql use db
print ========== step1
...
...
tests/script/unique/big/restartSpeed.sim
浏览文件 @
a1b1b8ab
...
...
@@ -16,7 +16,7 @@ print ========== prepare data
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database db blocks 3 cache 1
maxTables $maxTables
sql create database db blocks 3 cache 1
sql use db
print ========== step1
...
...
tests/script/unique/cluster/balance1.sim
浏览文件 @
a1b1b8ab
...
...
@@ -40,7 +40,7 @@ print ========= start dnode1
system sh/exec.sh -n dnode1 -s start
sql connect
sql create database c_b1_d1
maxTables 4
sql create database c_b1_d1
sql use c_b1_d1
sql create table c_b1_t1 (t timestamp, i int)
...
...
@@ -50,7 +50,7 @@ sql insert into c_b1_t1 values(1520000022013, 13)
sql insert into c_b1_t1 values(1520000023012, 12)
sql insert into c_b1_t1 values(1520000024011, 11)
sql create database c_b1_d2
maxTables 4
sql create database c_b1_d2
sql use c_b1_d2
sql create table c_b1_t2 (t timestamp, i int)
sql insert into c_b1_t2 values(1520000020025, 25)
...
...
@@ -107,7 +107,7 @@ print dnode2 ==> $dnode2Role
print ============================== step3
print ========= add db3
sql create database c_b1_d3
maxTables 4
sql create database c_b1_d3
sql use c_b1_d3
sql create table c_b1_t3 (t timestamp, i int)
sql insert into c_b1_t3 values(1520000020035, 35)
...
...
@@ -280,7 +280,7 @@ if $dnode4Role != slave then
endi
print ============================== step10
sql create database c_b1_d4
maxTables 4
sql create database c_b1_d4
sql use c_b1_d4
sql create table c_b1_t4 (t timestamp, i int)
sql insert into c_b1_t4 values(1520000020045, 45)
...
...
@@ -318,7 +318,7 @@ sql use c_b1_d2
sql insert into c_b1_t2 values(1520000025026, 26)
print ============================== step12
sql create database c_b1_d5
maxTables 4
sql create database c_b1_d5
sql use c_b1_d5
sql_error create table c_b1_t5 (t timestamp, i int) -x error3
...
...
@@ -343,7 +343,7 @@ sql insert into c_b1_t5 values(1520000022053, 53)
sql insert into c_b1_t5 values(1520000023052, 52)
sql insert into c_b1_t5 values(1520000024051, 51)
sql create database c_b1_d6
maxTables 4
sql create database c_b1_d6
sql use c_b1_d6
sql create table c_b1_t6 (t timestamp, i int)
sql insert into c_b1_t6 values(1520000020065, 65)
...
...
@@ -375,7 +375,7 @@ sql create dnode $hostname6
system sh/exec.sh -n dnode6 -s start
sleep 15000
sql create database c_b1_d7
maxTables 4
sql create database c_b1_d7
sql use c_b1_d7
sql create table c_b1_t7 (t timestamp, i int)
sql insert into c_b1_t7 values(1520000020075, 75)
...
...
@@ -384,7 +384,7 @@ sql insert into c_b1_t7 values(1520000022073, 73)
sql insert into c_b1_t7 values(1520000023072, 72)
sql insert into c_b1_t7 values(1520000024071, 71)
sql create database c_b1_d8
maxTables 4
sql create database c_b1_d8
sql use c_b1_d8
sql create table c_b1_t8 (t timestamp, i int)
sql insert into c_b1_t8 values(1520000020085, 85)
...
...
tests/script/unique/cluster/balance2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -47,7 +47,7 @@ system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
sleep 4001
sql create database c_b2_d1 replica 2
maxTables 4
sql create database c_b2_d1 replica 2
sql use c_b2_d1
sql create table c_b2_t1 (t timestamp, i int)
sql insert into c_b2_t1 values(1520000020015, 15)
...
...
@@ -56,7 +56,7 @@ sql insert into c_b2_t1 values(1520000022013, 13)
sql insert into c_b2_t1 values(1520000023012, 12)
sql insert into c_b2_t1 values(1520000024011, 11)
sql create database c_b2_d2 replica 2
maxTables 4
sql create database c_b2_d2 replica 2
sql use c_b2_d2
sql create table c_b2_t2 (t timestamp, i int)
sql insert into c_b2_t2 values(1520000020025, 25)
...
...
@@ -65,7 +65,7 @@ sql insert into c_b2_t2 values(1520000022023, 23)
sql insert into c_b2_t2 values(1520000023022, 22)
sql insert into c_b2_t2 values(1520000024021, 21)
sql create database c_b2_d3 replica 2
maxTables 4
sql create database c_b2_d3 replica 2
sql use c_b2_d3
sql create table c_b2_t3 (t timestamp, i int)
sql insert into c_b2_t3 values(1520000020035, 35)
...
...
tests/script/unique/cluster/cluster_main.sim
浏览文件 @
a1b1b8ab
...
...
@@ -57,7 +57,7 @@ sleep 3000
print ============== step2: create db1 with replica 3
$db = db1
print create database $db replica 3
#sql create database $db replica 3
maxTables $totalTableNum
#sql create database $db replica 3
sql create database $db replica 3
sql use $db
...
...
tests/script/unique/cluster/cluster_main0.sim
浏览文件 @
a1b1b8ab
...
...
@@ -57,7 +57,7 @@ sleep 3000
print ============== step2: create db1 with replica 3
$db = db1
print create database $db replica 3
#sql create database $db replica 3
maxTables $totalTableNum
#sql create database $db replica 3
sql create database $db replica 3
sql use $db
...
...
tests/script/unique/cluster/cluster_main1.sim
浏览文件 @
a1b1b8ab
...
...
@@ -58,7 +58,7 @@ print ============== step2: create db1 with replica 3
$replica = 3
$db = db1
print create database $db replica $replica
#sql create database $db replica 3
maxTables $totalTableNum
#sql create database $db replica 3
sql create database $db replica $replica
sql use $db
...
...
tests/script/unique/cluster/cluster_main2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -58,7 +58,7 @@ print ============== step2: create db1 with replica 3
$replica = 3
$db = db1
print create database $db replica $replica
#sql create database $db replica 3
maxTables $totalTableNum
#sql create database $db replica 3
sql create database $db replica $replica
sql use $db
...
...
tests/script/unique/dnode/alternativeRole.sim
浏览文件 @
a1b1b8ab
...
...
@@ -56,7 +56,7 @@ if $data2_3 != slave then
endi
print ========== step2
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (ts timestamp, i int)
sql create table d1.t2 (ts timestamp, i int)
sql create table d1.t3 (ts timestamp, i int)
...
...
tests/script/unique/dnode/balance1.sim
浏览文件 @
a1b1b8ab
...
...
@@ -30,7 +30,7 @@ system sh/exec.sh -n dnode1 -s start
sql connect
sleep 3000
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -68,7 +68,7 @@ if $data2_2 != 1 then
endi
print ========== step3
sql create database d2
maxTables 4
sql create database d2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
sql insert into d2.t2 values(now+2s, 24)
...
...
@@ -139,7 +139,7 @@ if $data2_3 != 2 then
endi
print ========== step6
sql create database d3
maxTables 4
sql create database d3
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
@@ -193,7 +193,7 @@ if $data2_4 != 1 then
endi
print ========== step8
sql create database d4
maxTables 4
sql create database d4
sql create table d4.t4 (t timestamp, i int)
sql insert into d4.t4 values(now+1s, 45)
sql insert into d4.t4 values(now+2s, 44)
...
...
tests/script/unique/dnode/balance2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -28,7 +28,7 @@ system sh/exec.sh -n dnode2 -s start
system sh/exec.sh -n dnode3 -s start
sleep 3000
sql create database d1 replica 2
maxTables 4
sql create database d1 replica 2
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -36,7 +36,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql create database d2 replica 2
maxTables 4
sql create database d2 replica 2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
sql insert into d2.t2 values(now+2s, 24)
...
...
@@ -117,7 +117,7 @@ if $data2_4 != 2 then
endi
print ========== step4
sql create database d3 replica 2
maxTables 4
sql create database d3 replica 2
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
tests/script/unique/dnode/balance3.sim
浏览文件 @
a1b1b8ab
...
...
@@ -33,7 +33,7 @@ system sh/exec.sh -n dnode3 -s start
system sh/exec.sh -n dnode4 -s start
sleep 3000
sql create database d1 replica 3
maxTables 4
sql create database d1 replica 3
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -41,7 +41,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql create database d2 replica 3
maxTables 4
sql create database d2 replica 3
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
sql insert into d2.t2 values(now+2s, 24)
...
...
@@ -136,7 +136,7 @@ if $data2_5 != 2 then
endi
print ========== step4
sql create database d3 replica 3
maxTables 4
sql create database d3 replica 3
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
tests/script/unique/dnode/balancex.sim
浏览文件 @
a1b1b8ab
...
...
@@ -20,7 +20,7 @@ system sh/exec.sh -n dnode1 -s start
sql connect
sleep 3000
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -28,7 +28,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql create database d2
maxTables 4
sql create database d2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
sql insert into d2.t2 values(now+2s, 24)
...
...
@@ -65,7 +65,7 @@ if $data2_2 != 2 then
endi
print ========== step3
sql create database d3 replica 2
maxTables 4
sql create database d3 replica 2
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
tests/script/unique/dnode/offline2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -27,7 +27,7 @@ sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start
sleep 3000
sql create database d1 replica 2
maxTables 4
sql create database d1 replica 2
sql create table d1.t1(ts timestamp, i int)
sql insert into d1.t1 values(1588262400001, 1)
...
...
tests/script/unique/dnode/remove1.sim
浏览文件 @
a1b1b8ab
...
...
@@ -20,7 +20,7 @@ system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -28,7 +28,7 @@ sql insert into d1.t1 values(now+3s, 13)
sql insert into d1.t1 values(now+4s, 12)
sql insert into d1.t1 values(now+5s, 11)
sql create database d2
maxTables 4
sql create database d2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
sql insert into d2.t2 values(now+2s, 24)
...
...
@@ -47,7 +47,7 @@ sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start
sleep 9000
sql create database d3 replica 2
maxTables 4
sql create database d3 replica 2
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
tests/script/unique/dnode/remove2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -20,7 +20,7 @@ system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(1588262400001, 15)
sql insert into d1.t1 values(1588262400002, 14)
...
...
@@ -28,7 +28,7 @@ sql insert into d1.t1 values(1588262400003, 13)
sql insert into d1.t1 values(1588262400004, 12)
sql insert into d1.t1 values(1588262400005, 11)
sql create database d2
maxTables 4
sql create database d2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(1588262400001, 25)
sql insert into d2.t2 values(1588262400002, 24)
...
...
@@ -47,7 +47,7 @@ sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start
sleep 9000
sql create database d3 replica 2
maxTables 4
sql create database d3 replica 2
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(1588262400001, 35)
sql insert into d3.t3 values(1588262400002, 34)
...
...
tests/script/unique/dnode/vnode_clean.sim
浏览文件 @
a1b1b8ab
...
...
@@ -19,7 +19,7 @@ print ========== step1
system sh/exec.sh -n dnode1 -s start
sql connect
sql create database d1
maxTables 4
sql create database d1
sql create table d1.t1 (t timestamp, i int)
sql insert into d1.t1 values(now+1s, 15)
sql insert into d1.t1 values(now+2s, 14)
...
...
@@ -55,7 +55,7 @@ if $data2_2 != 1 then
endi
print ========== step3
sql create database d2
maxTables 4
sql create database d2
sql create table d2.t2 (t timestamp, i int)
sql insert into d2.t2 values(now+1s, 25)
...
...
@@ -123,7 +123,7 @@ if $data2_3 != 2 then
endi
print ========== step6
sql create database d3
maxTables 4
sql create database d3
sql create table d3.t3 (t timestamp, i int)
sql insert into d3.t3 values(now+1s, 35)
sql insert into d3.t3 values(now+2s, 34)
...
...
tests/script/unique/stable/balance_replica1.sim
浏览文件 @
a1b1b8ab
...
...
@@ -29,7 +29,7 @@ $db = $dbPrefix
$mt = $mtPrefix
$st = $stPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int, tbcol2 float) TAGS(tgcol int)
...
...
tests/script/unique/stable/dnode2.sim
浏览文件 @
a1b1b8ab
...
...
@@ -38,7 +38,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/dnode2_stop.sim
浏览文件 @
a1b1b8ab
...
...
@@ -43,7 +43,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/dnode3.sim
浏览文件 @
a1b1b8ab
...
...
@@ -47,7 +47,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/replica2_dnode4.sim
浏览文件 @
a1b1b8ab
...
...
@@ -54,7 +54,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db replica 2
maxTables 4
sql create database $db replica 2
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/replica2_vnode3.sim
浏览文件 @
a1b1b8ab
...
...
@@ -37,7 +37,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db replica 2
maxTables 4
sql create database $db replica 2
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/replica3_dnode6.sim
浏览文件 @
a1b1b8ab
...
...
@@ -78,7 +78,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db replica 3
maxTables 4
sql create database $db replica 3
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stable/replica3_vnode3.sim
浏览文件 @
a1b1b8ab
...
...
@@ -54,7 +54,7 @@ $i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql create database $db replica 3
maxTables 4
sql create database $db replica 3
sql use $db
sql create table $mt (ts timestamp, tbcol int) TAGS(tgcol int)
...
...
tests/script/unique/stream/metrics_balance.sim
浏览文件 @
a1b1b8ab
...
...
@@ -32,7 +32,7 @@ sql connect
print ============== step1
$db = $dbPrefix
sql create database $db
maxTables 4
sql create database $db
sql use $db
$i = 0
...
...
tests/script/unique/stream/table_balance.sim
浏览文件 @
a1b1b8ab
...
...
@@ -34,7 +34,7 @@ $db = $dbPrefix
$mt = $mtPrefix
$st = $stPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int, tbcol2 float) TAGS(tgcol int)
...
...
tests/script/unique/stream/table_move.sim
浏览文件 @
a1b1b8ab
...
...
@@ -65,7 +65,7 @@ $db = $dbPrefix . $i
$mt = $mtPrefix . $i
$st = $stPrefix . $i
sql create database $db
maxTables 4
sql create database $db
sql use $db
sql create table $mt (ts timestamp, tbcol int, tbcol2 float) TAGS(tgcol int)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录