Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c5708907
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c5708907
编写于
10月 31, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test cases
上级
2f4c73d8
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
17 addition
and
9 deletion
+17
-9
src/plugins/monitor/src/monMain.c
src/plugins/monitor/src/monMain.c
+4
-0
tests/pytest/client/client.py
tests/pytest/client/client.py
+7
-7
tests/pytest/tools/taosdumpTest.py
tests/pytest/tools/taosdumpTest.py
+2
-1
tests/pytest/tools/taosdumpTest2.py
tests/pytest/tools/taosdumpTest2.py
+2
-1
tests/script/sh/deploy.bat
tests/script/sh/deploy.bat
+1
-0
tests/script/sh/deploy.sh
tests/script/sh/deploy.sh
+1
-0
未找到文件。
src/plugins/monitor/src/monMain.c
浏览文件 @
c5708907
...
@@ -271,6 +271,10 @@ SMonHttpStatus *monGetHttpStatusHashTableEntry(int32_t code) {
...
@@ -271,6 +271,10 @@ SMonHttpStatus *monGetHttpStatusHashTableEntry(int32_t code) {
}
}
static
void
*
monAuditFunc
(
void
*
param
)
{
static
void
*
monAuditFunc
(
void
*
param
)
{
if
(
!
tsEnableAudit
)
{
return
NULL
;
}
monDebug
(
"starting to initialize audit database..."
);
monDebug
(
"starting to initialize audit database..."
);
setThreadName
(
"audit"
);
setThreadName
(
"audit"
);
taosMsleep
(
1000
);
taosMsleep
(
1000
);
...
...
tests/pytest/client/client.py
浏览文件 @
c5708907
...
@@ -71,7 +71,7 @@ class TDTestCase:
...
@@ -71,7 +71,7 @@ class TDTestCase:
time
.
sleep
(
3
)
time
.
sleep
(
3
)
ret
=
tdSql
.
query
(
'show vnodes "{}"'
.
format
(
dnodeEndpoint
))
ret
=
tdSql
.
query
(
'show vnodes "{}"'
.
format
(
dnodeEndpoint
))
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
checkData
(
0
,
0
,
2
)
tdSql
.
checkData
(
0
,
1
,
"leader"
)
tdSql
.
checkData
(
0
,
1
,
"leader"
)
...
...
tests/pytest/tools/taosdumpTest.py
浏览文件 @
c5708907
...
@@ -101,8 +101,9 @@ class TDTestCase:
...
@@ -101,8 +101,9 @@ class TDTestCase:
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db1"
)
tdSql
.
execute
(
"drop database db1"
)
time
.
sleep
(
1
)
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
1
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp1"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp2"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp2"
%
binPath
)
...
...
tests/pytest/tools/taosdumpTest2.py
浏览文件 @
c5708907
...
@@ -94,8 +94,9 @@ class TDTestCase:
...
@@ -94,8 +94,9 @@ class TDTestCase:
binPath
)
binPath
)
tdSql
.
execute
(
"drop database db"
)
tdSql
.
execute
(
"drop database db"
)
time
.
sleep
(
1
)
tdSql
.
query
(
"show databases"
)
tdSql
.
query
(
"show databases"
)
tdSql
.
checkRows
(
0
)
tdSql
.
checkRows
(
1
)
os
.
system
(
"%s -i ./taosdumptest/tmp -y"
%
binPath
)
os
.
system
(
"%s -i ./taosdumptest/tmp -y"
%
binPath
)
...
...
tests/script/sh/deploy.bat
浏览文件 @
c5708907
...
@@ -85,6 +85,7 @@ echo wdebugFlag 135 >> %TAOS_CFG%
...
@@ -85,6 +85,7 @@ echo wdebugFlag 135 >> %TAOS_CFG%
echo
cqdebugFlag
135
>>
%TAOS_CFG%
echo
cqdebugFlag
135
>>
%TAOS_CFG%
echo
monitor
0
>>
%TAOS_CFG%
echo
monitor
0
>>
%TAOS_CFG%
echo
monitorInterval
1
>>
%TAOS_CFG%
echo
monitorInterval
1
>>
%TAOS_CFG%
echo
audit
0
>>
%TAOS_CFG%
echo
http
0
>>
%TAOS_CFG%
echo
http
0
>>
%TAOS_CFG%
echo
slaveQuery
0
>>
%TAOS_CFG%
echo
slaveQuery
0
>>
%TAOS_CFG%
echo
numOfThreadsPerCore
2
.0
>>
%TAOS_CFG%
echo
numOfThreadsPerCore
2
.0
>>
%TAOS_CFG%
...
...
tests/script/sh/deploy.sh
浏览文件 @
c5708907
...
@@ -139,6 +139,7 @@ echo "wdebugFlag 143" >> $TAOS_CFG
...
@@ -139,6 +139,7 @@ echo "wdebugFlag 143" >> $TAOS_CFG
echo
"cqdebugFlag 143"
>>
$TAOS_CFG
echo
"cqdebugFlag 143"
>>
$TAOS_CFG
echo
"monitor 0"
>>
$TAOS_CFG
echo
"monitor 0"
>>
$TAOS_CFG
echo
"monitorInterval 1"
>>
$TAOS_CFG
echo
"monitorInterval 1"
>>
$TAOS_CFG
echo
"audit 0"
>>
$TAOS_CFG
echo
"http 0"
>>
$TAOS_CFG
echo
"http 0"
>>
$TAOS_CFG
echo
"slaveQuery 0"
>>
$TAOS_CFG
echo
"slaveQuery 0"
>>
$TAOS_CFG
echo
"numOfThreadsPerCore 2.0"
>>
$TAOS_CFG
echo
"numOfThreadsPerCore 2.0"
>>
$TAOS_CFG
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录