Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
0da80dad
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
0da80dad
编写于
5月 11, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
5月 11, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1872 from taosdata/feature/tsim
Feature/tsim
上级
c0efb080
459c267a
变更
27
显示空白变更内容
内联
并排
Showing
27 changed file
with
198 addition
and
145 deletion
+198
-145
src/dnode/src/dnodeMgmt.c
src/dnode/src/dnodeMgmt.c
+5
-2
src/mnode/src/mgmtDb.c
src/mnode/src/mgmtDb.c
+4
-0
tests/script/basicSuite.sim
tests/script/basicSuite.sim
+0
-6
tests/script/general/db/delete_reuse2.sim
tests/script/general/db/delete_reuse2.sim
+1
-0
tests/script/general/db/testSuite.sim
tests/script/general/db/testSuite.sim
+2
-1
tests/script/general/db/vnodes.sim
tests/script/general/db/vnodes.sim
+45
-0
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+58
-62
tests/script/sh/deploy.sh
tests/script/sh/deploy.sh
+1
-1
tests/script/unique/account/account_create.sim
tests/script/unique/account/account_create.sim
+1
-1
tests/script/unique/account/account_delete.sim
tests/script/unique/account/account_delete.sim
+1
-1
tests/script/unique/account/account_len.sim
tests/script/unique/account/account_len.sim
+1
-1
tests/script/unique/account/authority.sim
tests/script/unique/account/authority.sim
+1
-1
tests/script/unique/account/basic.sim
tests/script/unique/account/basic.sim
+1
-0
tests/script/unique/account/paras.sim
tests/script/unique/account/paras.sim
+1
-0
tests/script/unique/account/pass_alter.sim
tests/script/unique/account/pass_alter.sim
+1
-1
tests/script/unique/account/pass_len.sim
tests/script/unique/account/pass_len.sim
+1
-1
tests/script/unique/account/usage.sim
tests/script/unique/account/usage.sim
+1
-0
tests/script/unique/account/user_create.sim
tests/script/unique/account/user_create.sim
+1
-1
tests/script/unique/account/user_len.sim
tests/script/unique/account/user_len.sim
+1
-1
tests/script/unique/big/balance.sim
tests/script/unique/big/balance.sim
+24
-24
tests/script/unique/big/maxvnodes.sim
tests/script/unique/big/maxvnodes.sim
+21
-15
tests/script/unique/big/tcp.sim
tests/script/unique/big/tcp.sim
+4
-4
tests/script/unique/mnode/mgmt23.sim
tests/script/unique/mnode/mgmt23.sim
+3
-3
tests/script/unique/mnode/mgmt25.sim
tests/script/unique/mnode/mgmt25.sim
+2
-2
tests/script/unique/mnode/mgmt26.sim
tests/script/unique/mnode/mgmt26.sim
+3
-3
tests/script/unique/mnode/mgmt33.sim
tests/script/unique/mnode/mgmt33.sim
+5
-5
tests/script/unique/mnode/mgmt34.sim
tests/script/unique/mnode/mgmt34.sim
+9
-9
未找到文件。
src/dnode/src/dnodeMgmt.c
浏览文件 @
0da80dad
...
...
@@ -266,9 +266,12 @@ static int32_t dnodeProcessConfigDnodeMsg(SRpcMsg *pMsg) {
return
taosCfgDynamicOptions
(
pCfg
->
config
);
}
void
dnodeUpdateIpSet
(
void
*
ahandle
,
SRpcIpSet
*
pIpSet
)
{
dTrace
(
"mgmt IP list is changed for ufp is called"
);
dPrint
(
"mnode IP list is changed for ufp is called, numOfIps:%d inUse:%d"
,
pIpSet
->
numOfIps
,
pIpSet
->
inUse
);
for
(
int
i
=
0
;
i
<
pIpSet
->
numOfIps
;
++
i
)
{
dPrint
(
"mnode index:%d %s:%u"
,
i
,
pIpSet
->
fqdn
[
i
],
pIpSet
->
port
[
i
])
}
tsMnodeIpSet
=
*
pIpSet
;
}
...
...
src/mnode/src/mgmtDb.c
浏览文件 @
0da80dad
...
...
@@ -297,8 +297,10 @@ static int32_t mgmtCreateDb(SAcctObj *pAcct, SCMCreateDbMsg *pCreate) {
if
(
pDb
!=
NULL
)
{
mgmtDecDbRef
(
pDb
);
if
(
pCreate
->
ignoreExist
)
{
mTrace
(
"db:%s, already exist, ignore exist is set"
,
pCreate
->
db
);
return
TSDB_CODE_SUCCESS
;
}
else
{
mError
(
"db:%s, is already exist, ignore exist not set"
,
pCreate
->
db
);
return
TSDB_CODE_DB_ALREADY_EXIST
;
}
}
...
...
@@ -751,6 +753,8 @@ static void mgmtProcessCreateDbMsg(SQueuedMsg *pMsg) {
code
=
mgmtCreateDb
(
pMsg
->
pUser
->
pAcct
,
pCreate
);
if
(
code
==
TSDB_CODE_SUCCESS
)
{
mLPrint
(
"db:%s, is created by %s"
,
pCreate
->
db
,
pMsg
->
pUser
->
user
);
}
else
{
mError
(
"db:%s, failed to create, reason:%s"
,
pCreate
->
db
,
tstrerror
(
code
));
}
}
...
...
tests/script/basicSuite.sim
浏览文件 @
0da80dad
#################################
run general/cache/new_metrics.sim
run general/compress/compress.sim
run general/compute/avg.sim
run general/compute/bottom.sim
run general/compute/count.sim
run general/db/len.sim
run general/db/basic4.sim
run general/http/restful_insert.sim
run general/import/basic.sim
run general/import/commit.sim
run general/insert/basic.sim
run general/insert/query_file_memory.sim
run general/parser/binary_escapeCharacter.sim
run general/parser/columnValue_bigint.sim
run general/parser/select_from_cache_disk.sim
run general/table/autocreate.sim
run general/table/basic3.sim
run general/table/column_name.sim
run general/table/int.sim
run general/table/vgroup.sim
run general/user/basic1.sim
run general/user/pass_alter.sim
run general/user/user_len.sim
run general/vector/single.sim
##################################
tests/script/general/db/delete_reuse2.sim
浏览文件 @
0da80dad
...
...
@@ -26,6 +26,7 @@ system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode4 -c numOfTotalVnodes -v 4
print ========= start dnodes
sleep 2000
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
tests/script/general/db/testSuite.sim
浏览文件 @
0da80dad
run general/
/
db/basic.sim
run general/db/basic.sim
run general/db/basic1.sim
run general/db/basic2.sim
run general/db/basic3.sim
...
...
@@ -13,3 +13,4 @@ run general/db/delete_writing2.sim
run general/db/len.sim
run general/db/repeat.sim
run general/db/tables.sim
run general/db/vnodes.sim
tests/script/general/db/vnodes.sim
0 → 100644
浏览文件 @
0da80dad
system sh/stop_dnodes.sh
$totalVnodes = 100
$maxTables = 4
$totalRows = $totalVnodes * $maxTables
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 maxtablesPerVnode -v $maxTables
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v $totalVnodes
system sh/cfg.sh -n dnode1 -c maxVnodeConnections -v 100000
system sh/cfg.sh -n dnode1 -c maxMeterConnections -v 100000
system sh/cfg.sh -n dnode1 -c maxShellConns -v 100000
system sh/cfg.sh -n dnode1 -c maxMgmtConnections -v 100000
print ========== prepare data
system sh/exec.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database db blocks 2 cache 1 maxTables $maxTables
sql use db
print ========== step1
sql create table mt (ts timestamp, tbcol int) TAGS(tgcol int)
$x = 0
while $x < $totalRows
$tb = t . $x
sql create table $tb using mt tags( $x )
sql insert into $tb values (now, $x )
$x = $x + 1
endw
print ========== step2
sql select * from mt
if $rows != $totalRows then
return -1
endi
sql select count(*) from mt
if $data00 != $totalRows then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/jenkins/basic.txt
浏览文件 @
0da80dad
...
...
@@ -15,12 +15,12 @@ cd ../../../debug; make
#./test.sh -f general/alter/table.sim
./test.sh -f general/cache/new_metrics.sim
#
./test.sh -f general/cache/restart_metrics.sim
./test.sh -f general/cache/restart_metrics.sim
./test.sh -f general/cache/restart_table.sim
#./test.sh -f general/column/commit.sim
#./test.sh -f general/column/metrics.sim
#./test.sh -f general/column/table.sim
#
hongze
./test.sh -f general/column/commit.sim
#
hongze
./test.sh -f general/column/metrics.sim
#
hongze
./test.sh -f general/column/table.sim
./test.sh -f general/compress/commitlog.sim
./test.sh -f general/compress/compress.sim
...
...
@@ -31,11 +31,11 @@ cd ../../../debug; make
./test.sh -f general/compute/bottom.sim
./test.sh -f general/compute/count.sim
./test.sh -f general/compute/diff.sim
#./test.sh -f general/compute/diff2.sim
#
liao
./test.sh -f general/compute/diff2.sim
./test.sh -f general/compute/first.sim
#./test.sh -f general/compute/interval.sim
#./test.sh -f general/compute/last.sim
#./test.sh -f general/compute/leastsquare.sim
#
liao
./test.sh -f general/compute/interval.sim
#
liao
./test.sh -f general/compute/last.sim
#
liao
./test.sh -f general/compute/leastsquare.sim
./test.sh -f general/compute/max.sim
./test.sh -f general/compute/min.sim
./test.sh -f general/compute/null.sim
...
...
@@ -53,41 +53,42 @@ cd ../../../debug; make
./test.sh -f general/db/delete_reuse1.sim
./test.sh -f general/db/delete_reuse2.sim
./test.sh -f general/db/delete_reusevnode.sim
#
./test.sh -f general/db/delete_reusevnode2.sim
./test.sh -f general/db/delete_reusevnode2.sim
./test.sh -f general/db/delete_writing1.sim
./test.sh -f general/db/delete_writing2.sim
./test.sh -f general/db/len.sim
#./test.sh -u -f general/db/vnodes.sim
./test.sh -f general/db/repeat.sim
./test.sh -f general/db/tables.sim
#
./test.sh -f general/field/2.sim
./test.sh -f general/field/2.sim
#./test.sh -f general/field/3.sim
#./test.sh -f general/field/4.sim
#./test.sh -f general/field/5.sim
#./test.sh -f general/field/6.sim
##
./test.sh -f general/field/bigint.sim
#./test.sh -f general/field/binary.sim
##
./test.sh -f general/field/bool.sim
#
./test.sh -f general/field/single.sim
##
./test.sh -f general/field/smallint.sim
##
./test.sh -f general/field/tinyint.sim
#
#
./test.sh -f general/http/restful.sim
./test.sh -f general/field/bigint.sim
#
liao
./test.sh -f general/field/binary.sim
./test.sh -f general/field/bool.sim
./test.sh -f general/field/single.sim
./test.sh -f general/field/smallint.sim
./test.sh -f general/field/tinyint.sim
#
jeff
./test.sh -f general/http/restful.sim
./test.sh -f general/http/restful_insert.sim
./test.sh -f general/http/restful_limit.sim
#
#
./test.sh -f general/http/restful_full.sim
#
jeff
./test.sh -f general/http/restful_full.sim
./test.sh -f general/http/prepare.sim
./test.sh -f general/http/telegraf.sim
./test.sh -f general/http/grafana_bug.sim
#./test.sh -f general/http/grafana.sim
#
jeff
./test.sh -f general/http/grafana.sim
./test.sh -f general/import/basic.sim
./test.sh -f general/import/commit.sim
./test.sh -f general/import/large.sim
#./test.sh -f general/import/replica1.sim
#
hongze
./test.sh -f general/import/replica1.sim
./test.sh -f general/insert/basic.sim
#./test.sh -f general/insert/insert_drop.sim
#
hongze
./test.sh -f general/insert/insert_drop.sim
./test.sh -f general/insert/query_block1_memory.sim
./test.sh -f general/insert/query_block2_memory.sim
./test.sh -f general/insert/query_block1_file.sim
...
...
@@ -96,8 +97,6 @@ cd ../../../debug; make
./test.sh -f general/insert/query_multi_file.sim
./test.sh -f general/insert/tcp.sim
#parser
# ./test.sh -f general/parser/alter.sim
# ./test.sh -f general/parser/alter1.sim
# ./test.sh -f general/parser/alter_stable.sim
...
...
@@ -112,8 +111,8 @@ cd ../../../debug; make
./test.sh -f general/parser/columnValue_float.sim
./test.sh -f general/parser/columnValue_int.sim
# ./test.sh -f general/parser/col_arithmetic_operation.sim
#
./test.sh -f general/parser/columnValue.sim
#
./test.sh -f general/parser/commit.sim
./test.sh -f general/parser/columnValue.sim
./test.sh -f general/parser/commit.sim
# ./test.sh -f general/parser/create_db.sim
# ./test.sh -f general/parser/create_mt.sim
# ./test.sh -f general/parser/create_tb.sim
...
...
@@ -121,9 +120,9 @@ cd ../../../debug; make
# ./test.sh -f general/parser/fill.sim
# ./test.sh -f general/parser/fill_stb.sim
# ./test.sh -f general/parser/first_last.sim
#
./test.sh -f general/parser/import_commit1.sim
#
./test.sh -f general/parser/import_commit2.sim
#
./test.sh -f general/parser/import_commit3.sim
./test.sh -f general/parser/import_commit1.sim
./test.sh -f general/parser/import_commit2.sim
./test.sh -f general/parser/import_commit3.sim
# ./test.sh -f general/parser/import_file.sim
# ./test.sh -f general/parser/insert_tb.sim
# ./test.sh -f general/parser/tags_dynamically_specifiy.sim
...
...
@@ -167,7 +166,7 @@ cd ../../../debug; make
./test.sh -f general/table/autocreate.sim
./test.sh -f general/table/basic1.sim
./test.sh -f general/table/basic2.sim
./test.sh -f general/table/basic3.sim
#hongze
./test.sh -f general/table/basic3.sim
./test.sh -f general/table/bigint.sim
./test.sh -f general/table/binary.sim
./test.sh -f general/table/bool.sim
...
...
@@ -187,7 +186,7 @@ cd ../../../debug; make
./test.sh -f general/table/int.sim
./test.sh -f general/table/limit.sim
./test.sh -f general/table/smallint.sim
#
./test.sh -f general/table/table_len.sim
./test.sh -f general/table/table_len.sim
./test.sh -f general/table/table.sim
./test.sh -f general/table/tinyint.sim
./test.sh -f general/table/vgroup.sim
...
...
@@ -197,45 +196,45 @@ cd ../../../debug; make
#./test.sh -f general/tag/5.sim
#./test.sh -f general/tag/6.sim
#./test.sh -f general/tag/add.sim
#
./test.sh -f general/tag/bigint.sim
./test.sh -f general/tag/bigint.sim
#./test.sh -f general/tag/binary_binary.sim
#./test.sh -f general/tag/binary.sim
#./test.sh -f general/tag/bool_binary.sim
#./test.sh -f general/tag/bool_int.sim
#
./test.sh -f general/tag/bool.sim
./test.sh -f general/tag/bool.sim
#./test.sh -f general/tag/change.sim
#./test.sh -f general/tag/column.sim
#
liao
./test.sh -f general/tag/column.sim
#./test.sh -f general/tag/commit.sim
#./test.sh -f general/tag/create.sim
#
liao
./test.sh -f general/tag/create.sim
#./test.sh -f general/tag/delete.sim
#./test.sh -f general/tag/double.sim
#
./test.sh -f general/tag/filter.sim
./test.sh -f general/tag/filter.sim
#./test.sh -f general/tag/float.sim
#./test.sh -f general/tag/int_binary.sim
#./test.sh -f general/tag/int_float.sim
#
./test.sh -f general/tag/int.sim
./test.sh -f general/tag/int.sim
#./test.sh -f general/tag/set.sim
#
./test.sh -f general/tag/smallint.sim
#
./test.sh -f general/tag/tinyint.sim
./test.sh -f general/tag/smallint.sim
./test.sh -f general/tag/tinyint.sim
./test.sh -f general/user/basic1.sim
#
./test.sh -f general/user/monitor.sim
./test.sh -f general/user/monitor.sim
./test.sh -f general/user/pass_alter.sim
./test.sh -f general/user/pass_len.sim
./test.sh -f general/user/user_create.sim
./test.sh -f general/user/user_len.sim
#
./test.sh -f general/vector/metrics_field.sim
#
./test.sh -f general/vector/metrics_mix.sim
#
./test.sh -f general/vector/metrics_query.sim
#
./test.sh -f general/vector/metrics_tag.sim
#
./test.sh -f general/vector/metrics_time.sim
#./test.sh -f general/vector/multi.sim
./test.sh -f general/vector/metrics_field.sim
./test.sh -f general/vector/metrics_mix.sim
./test.sh -f general/vector/metrics_query.sim
./test.sh -f general/vector/metrics_tag.sim
./test.sh -f general/vector/metrics_time.sim
#
liao
./test.sh -f general/vector/multi.sim
./test.sh -f general/vector/single.sim
#
./test.sh -f general/vector/table_field.sim
#
./test.sh -f general/vector/table_mix.sim
#
./test.sh -f general/vector/table_query.sim
#
./test.sh -f general/vector/table_time.sim
./test.sh -f general/vector/table_field.sim
./test.sh -f general/vector/table_mix.sim
./test.sh -f general/vector/table_query.sim
./test.sh -f general/vector/table_time.sim
#################################
...
...
@@ -253,7 +252,7 @@ cd ../../../debug; make
#./test.sh -u -f unique/big/balance.sim
#./test.sh -u -f unique/big/maxvnodes.sim
#
./test.sh -u -f unique/big/tcp.sim
./test.sh -u -f unique/big/tcp.sim
##./test.sh -u -f unique/cluster/balance1.sim
##./test.sh -u -f unique/cluster/balance2.sim
...
...
@@ -298,13 +297,13 @@ cd ../../../debug; make
#./test.sh -u -f unique/metrics/replica3_dnode6.sim
#./test.sh -u -f unique/metrics/replica3_vnode3.sim
##
./test.sh -u -f unique/mnode/mgmt22.sim
##
./test.sh -u -f unique/mnode/mgmt23.sim
##
./test.sh -u -f unique/mnode/mgmt24.sim
##
./test.sh -u -f unique/mnode/mgmt25.sim
##
./test.sh -u -f unique/mnode/mgmt26.sim
##
./test.sh -u -f unique/mnode/mgmt33.sim
##
./test.sh -u -f unique/mnode/mgmt34.sim
./test.sh -u -f unique/mnode/mgmt22.sim
./test.sh -u -f unique/mnode/mgmt23.sim
./test.sh -u -f unique/mnode/mgmt24.sim
./test.sh -u -f unique/mnode/mgmt25.sim
./test.sh -u -f unique/mnode/mgmt26.sim
./test.sh -u -f unique/mnode/mgmt33.sim
./test.sh -u -f unique/mnode/mgmt34.sim
#./test.sh -u -f unique/mnode/mgmtr2.sim
#./test.sh -u -f unique/mnode/secondIp.sim
...
...
@@ -312,13 +311,10 @@ cd ../../../debug; make
##./test.sh -u -f unique/table/delete_part.sim
##./test.sh -u -f unique/vnode/replica2_basic2.sim
##./test.sh -u -f unique/vnode/replica3_basic.sim
#./test.sh -u -f unique/vnode/commit.sim
#./test.sh -u -f unique/vnode/many.sim
#./test.sh -u -f unique/vnode/replica2_basic.sim
##
./test.sh -u -f unique/vnode/replica2_basic2.sim
./test.sh -u -f unique/vnode/replica2_basic2.sim
#./test.sh -u -f unique/vnode/replica2_repeat.sim
##./test.sh -u -f unique/vnode/replica3_basic.sim
#./test.sh -u -f unique/vnode/replica3_repeat.sim
...
...
tests/script/sh/deploy.sh
浏览文件 @
0da80dad
...
...
@@ -99,7 +99,7 @@ echo "logDir $LOG_DIR" >> $TAOS_CFG
echo
"dDebugFlag 199"
>>
$TAOS_CFG
echo
"mDebugFlag 199"
>>
$TAOS_CFG
echo
"sdbDebugFlag 199"
>>
$TAOS_CFG
echo
"rpcDebugFlag 1
35
"
>>
$TAOS_CFG
echo
"rpcDebugFlag 1
51
"
>>
$TAOS_CFG
echo
"tmrDebugFlag 131"
>>
$TAOS_CFG
echo
"cDebugFlag 135"
>>
$TAOS_CFG
echo
"httpDebugFlag 135"
>>
$TAOS_CFG
...
...
tests/script/unique/account/account_create.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
print ============================ dnode1 start
...
...
tests/script/unique/account/account_delete.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
print ============= step1
sql create account oroot pass 'taosdata'
...
...
tests/script/unique/account/account_len.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
$i = 0
$dbPrefix = aldb
...
...
tests/script/unique/account/authority.sim
浏览文件 @
0da80dad
...
...
@@ -4,8 +4,8 @@ system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 8
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
print ============= step1
...
...
tests/script/unique/account/basic.sim
浏览文件 @
0da80dad
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec_up.sh -n dnode1 -s start
sleep 3000
sql connect
print =============== show accounts
...
...
tests/script/unique/account/paras.sim
浏览文件 @
0da80dad
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec_up.sh -n dnode1 -s start
sleep 3000
sql connect
print =============== show accounts
...
...
tests/script/unique/account/pass_alter.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
print ============= step1
sql create user read pass 'taosdata1'
...
...
tests/script/unique/account/pass_len.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
$i = 0
$dbPrefix = apdb
...
...
tests/script/unique/account/usage.sim
浏览文件 @
0da80dad
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec_up.sh -n dnode1 -s start
sleep 3000
sql connect
print =============== show accounts
...
...
tests/script/unique/account/user_create.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
print =============== step1
sql show users
...
...
tests/script/unique/account/user_len.sim
浏览文件 @
0da80dad
...
...
@@ -3,8 +3,8 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/exec_up.sh -n dnode1 -s start
sql connect
sleep 3000
sql connect
$i = 0
$dbPrefix = lm_us_db
...
...
tests/script/unique/big/balance.sim
浏览文件 @
0da80dad
...
...
@@ -20,7 +20,7 @@ system sh/cfg.sh -n dnode5 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode5 -c maxtablesPerVnode -v 1000
print =============== prepare data
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sleep 3000
sql connect
...
...
@@ -87,7 +87,7 @@ endi
print ========== step1
sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
show1:
...
...
@@ -98,12 +98,12 @@ show1:
endi
sql show dnodes
print dnode1
freeVnodes $data3_192.168.0.
1
print dnode2
freeVnodes $data3_192.168.0.
2
if $data
3_192.168.0.
1 != 2 then
print dnode1
openvnodes $data2_
1
print dnode2
openvnodes $data2_
2
if $data
2_
1 != 2 then
goto show1
endi
if $data
3_192.168.0.
2 != 2 then
if $data
2_
2 != 2 then
goto show1
endi
...
...
@@ -139,7 +139,7 @@ endi
print ========== step2
sql create dnode $hostname3
system sh/exec.sh -n dnode3 -s start
system sh/exec
_up
.sh -n dnode3 -s start
sleep 10000
print ========== step3
...
...
@@ -154,20 +154,20 @@ show3:
endi
sql show dnodes
print dnode1 freeVnodes $data
3_192.168.0.
1
print dnode2 freeVnodes $data
3_192.168.0.
2
print dnode3 freeVnodes $data
3_192.168.0.
3
if $data
3_192.168.0.
1 != 2 then
print dnode1 freeVnodes $data
2_
1
print dnode2 freeVnodes $data
2_
2
print dnode3 freeVnodes $data
2_
3
if $data
2_
1 != 2 then
goto show3
endi
if $data
3_192.168.0.
2 != NULL then
if $data
2_
2 != NULL then
goto show3
endi
if $data
3_192.168.0.
3 != 2 then
if $data
2_
3 != 2 then
goto show3
endi
system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode2 -s stop -x SIGINT
sql select count(*) from t10
print select count(*) from t10 $data00 expect $rowNum
...
...
@@ -211,16 +211,16 @@ show4:
endi
sql show dnodes
print dnode1 freeVnodes $data
3_192.168.0.
1
print dnode3 freeVnodes $data
3_192.168.0.
3
if $data
3_192.168.0.
1 != 0 then
print dnode1 freeVnodes $data
2_
1
print dnode3 freeVnodes $data
2_
3
if $data
2_
1 != 0 then
goto show4
endi
if $data
3_192.168.0.
3 != NULL then
if $data
2_
3 != NULL then
goto show4
endi
system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec
_up
.sh -n dnode3 -s stop -x SIGINT
sql select count(*) from t10
print select count(*) from t10 $data00 expect $rowNum
...
...
@@ -255,7 +255,7 @@ endi
print ========== step5
sql alter database db replica 2
sql create dnode $hostname4
system sh/exec.sh -n dnode4 -s start
system sh/exec
_up
.sh -n dnode4 -s start
$x = 0
show5:
...
...
@@ -266,12 +266,12 @@ show5:
endi
sql show dnodes
print dnode1 freeVnodes $data
3_192.168.0.
1
print dnode4 freeVnodes $data
3_192.168.0.
4
if $data
3_192.168.0.
1 != 0 then
print dnode1 freeVnodes $data
2_
1
print dnode4 freeVnodes $data
2_
4
if $data
2_
1 != 0 then
goto show5
endi
if $data
3_192.168.0.
4 != 0 then
if $data
2_
4 != 0 then
goto show5
endi
...
...
tests/script/unique/big/maxvnodes.sim
浏览文件 @
0da80dad
system sh/stop_dnodes.sh
$totalVnodes = 100
$minVnodes = 48
$maxVnodes = 52
$maxTables = 4
$totalRows = $totalVnodes * $maxTables
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 maxtablesPerVnode -v
100
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v
256
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v
$maxTables
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v
$totalVnodes
system sh/cfg.sh -n dnode1 -c maxVnodeConnections -v 100000
system sh/cfg.sh -n dnode1 -c maxMeterConnections -v 100000
system sh/cfg.sh -n dnode1 -c maxShellConns -v 100000
system sh/cfg.sh -n dnode1 -c maxMgmtConnections -v 100000
print ========== prepare data
system sh/exec.sh -n dnode1 -s start
system sh/exec_up.sh -n dnode1 -s start
sleep 3000
sql connect
sql create database db
sql create database db
blocks 2 cache 1 maxTables $maxTables
sql use db
print ========== step1
sql create table mt (ts timestamp, tbcol int) TAGS(tgcol int)
$x = 0
while $x <
25600
while $x <
$totalRows
$tb = t . $x
sql create table $tb using mt tags( $x )
sql insert into $tb values (now, $x )
...
...
@@ -28,16 +35,15 @@ endw
print ========== step2
sql select * from mt
if $rows !=
25600
then
if $rows !=
$totalRows
then
return -1
endi
sql select count(*) from mt
if $data00 !=
25600
then
if $data00 !=
$totalRows
then
return -1
endi
system sh/deploy.sh -n dnode2 -i 2
system sh/cfg.sh -n dnode2 -c walLevel -v 0
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 100
...
...
@@ -49,7 +55,7 @@ system sh/cfg.sh -n dnode2 -c maxMgmtConnections -v 100000
print ========== step2
sql create dnode $hostname2
system sh/exec.sh -n dnode2 -s start
system sh/exec
_up
.sh -n dnode2 -s start
$x = 0
show3:
...
...
@@ -60,23 +66,23 @@ show3:
endi
sql show dnodes
print dnode1
freeVnodes $data3_192.168.0.
1
print dnode2
freeVnodes $data3_192.168.0.
2
if $data
3_192.168.0.1 != 126
then
print dnode1
openvnodes $data2_
1
print dnode2
openvnodes $data2_
2
if $data
2_1 != $minVnodes
then
goto show3
endi
if $data
3_192.168.0.2 != 130
then
if $data
2_2 != $maxVnodes
then
goto show3
endi
print ========== step4
sql select * from mt
if $rows !=
25600
then
if $rows !=
$totalRows
then
return -1
endi
sql select count(*) from mt
if $data00 !=
25600
then
if $data00 !=
$totalRows
then
return -1
endi
...
...
tests/script/unique/big/tcp.sim
浏览文件 @
0da80dad
...
...
@@ -14,8 +14,8 @@ system sh/cfg.sh -n dnode1 -c adminDebugFlag -v 131
system sh/cfg.sh -n dnode1 -c httpDebugFlag -v 135
system sh/cfg.sh -n dnode1 -c debugFlag -v 131
system sh/exec.sh -n dnode1 -s start
system sh/exec
_up
.sh -n dnode1 -s start
sleep 3000
sql connect
print ======================== dnode1 start
...
...
@@ -52,7 +52,7 @@ while $i < $tbNum
endw
$i = 0
while $i < 10
0
while $i < 10
print =============== step3 $i
sql select count(*) from $mt
print ===> $data00 $data01
...
...
@@ -83,7 +83,7 @@ while $i < $tbNum
endw
$i = 0
while $i < 10
0
while $i < 10
print =============== step5 $i
sql select count(*) from $mt where tgcol < 20200
print ===> $data00 $data01
...
...
tests/script/unique/mnode/mgmt23.sim
浏览文件 @
0da80dad
...
...
@@ -59,7 +59,7 @@ endi
if $dnode2Role != slave then
return -1
endi
if $dnode3Role !=
NULL
then
if $dnode3Role !=
null
then
return -1
endi
...
...
@@ -78,7 +78,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
@@ -106,7 +106,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
tests/script/unique/mnode/mgmt25.sim
浏览文件 @
0da80dad
...
...
@@ -59,7 +59,7 @@ endi
if $dnode2Role != slave then
return -1
endi
if $dnode3Role !=
NULL
then
if $dnode3Role !=
null
then
return -1
endi
...
...
@@ -78,7 +78,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
tests/script/unique/mnode/mgmt26.sim
浏览文件 @
0da80dad
...
...
@@ -59,7 +59,7 @@ endi
if $dnode2Role != slave then
return -1
endi
if $dnode3Role !=
NULL
then
if $dnode3Role !=
null
then
return -1
endi
...
...
@@ -79,7 +79,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
@@ -106,7 +106,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
tests/script/unique/mnode/mgmt33.sim
浏览文件 @
0da80dad
...
...
@@ -18,10 +18,10 @@ print dnode3 ==> $data3_3
if $data2_1 != master then
return -1
endi
if $data3_2 !=
NULL
then
if $data3_2 !=
null
then
return -1
endi
if $data3_3 !=
NULL
then
if $data3_3 !=
null
then
return -1
endi
...
...
@@ -44,7 +44,7 @@ endi
if $dnode2Role != slave then
return -1
endi
if $dnode3Role !=
NULL
then
if $dnode3Role !=
null
then
return -1
endi
...
...
@@ -86,7 +86,7 @@ print dnode3 ==> $dnode3Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
@@ -156,7 +156,7 @@ print dnode1 ==> $dnode1Role
print dnode2 ==> $dnode2Role
print dnode3 ==> $dnode3Role
if $dnode1Role !=
NULL
then
if $dnode1Role !=
null
then
return -1
endi
#if $dnode2Role != master then
...
...
tests/script/unique/mnode/mgmt34.sim
浏览文件 @
0da80dad
...
...
@@ -22,10 +22,10 @@ print dnode3 ==> $data3_3
if $data2_1 != master then
return -1
endi
if $data3_2 !=
NULL
then
if $data3_2 !=
null
then
return -1
endi
if $data3_3 !=
NULL
then
if $data3_3 !=
null
then
return -1
endi
...
...
@@ -50,10 +50,10 @@ endi
if $dnode2Role != slave then
return -1
endi
if $dnode3Role !=
NULL
then
if $dnode3Role !=
null
then
return -1
endi
if $dnode4Role !=
NULL
then
if $dnode4Role !=
null
then
return -1
endi
...
...
@@ -81,7 +81,7 @@ endi
if $dnode3Role != slave then
return -1
endi
if $dnode4Role !=
NULL
then
if $dnode4Role !=
null
then
return -1
endi
...
...
@@ -110,7 +110,7 @@ endi
if $dnode3Role != slave then
return -1
endi
if $dnode4Role !=
NULL
then
if $dnode4Role !=
null
then
return -1
endi
...
...
@@ -131,7 +131,7 @@ print dnode4 ==> $dnode4Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
@@ -165,7 +165,7 @@ print dnode4 ==> $dnode4Role
if $dnode1Role != master then
return -1
endi
if $dnode2Role !=
NULL
then
if $dnode2Role !=
null
then
return -1
endi
if $dnode3Role != slave then
...
...
@@ -207,7 +207,7 @@ print dnode2 ==> $dnode2Role
print dnode3 ==> $dnode3Role
print dnode4 ==> $dnode4Role
if $dnode1Role !=
NULL
then
if $dnode1Role !=
null
then
return -1
endi
if $dnode2Role != slave then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录