Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
007470ff
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
未验证
提交
007470ff
编写于
6月 15, 2022
作者:
wafwerar
提交者:
GitHub
6月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13830 from taosdata/fix/ZhiqiangWang/TD-16357-add-taosd-assert-kill
test: add taosd assert kill
上级
e85b591e
5f73b165
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
8 deletion
+18
-8
source/libs/catalog/src/ctgCache.c
source/libs/catalog/src/ctgCache.c
+1
-1
tests/system-test/7-tmq/basic5.py
tests/system-test/7-tmq/basic5.py
+3
-1
tests/system-test/test-all.bat
tests/system-test/test-all.bat
+3
-2
tests/system-test/test.py
tests/system-test/test.py
+11
-4
未找到文件。
source/libs/catalog/src/ctgCache.c
浏览文件 @
007470ff
...
...
@@ -1899,7 +1899,7 @@ _return:
void
ctgUpdateThreadUnexpectedStopped
(
void
)
{
if
(
CTG_IS_LOCKED
(
&
gCtgMgmt
.
lock
)
>
0
)
CTG_UNLOCK
(
CTG_READ
,
&
gCtgMgmt
.
lock
);
if
(
!
atomic_load_8
((
int8_t
*
)
&
gCtgMgmt
.
exit
)
&&
CTG_IS_LOCKED
(
&
gCtgMgmt
.
lock
)
>
0
)
CTG_UNLOCK
(
CTG_READ
,
&
gCtgMgmt
.
lock
);
}
void
ctgCleanupCacheQueue
(
void
)
{
...
...
tests/system-test/7-tmq/basic5.py
浏览文件 @
007470ff
...
...
@@ -134,7 +134,7 @@ class TDTestCase:
parameterDict
[
'cfg'
]
=
cfgPath
prepareEnvThread
=
threading
.
Thread
(
target
=
self
.
prepareEnv
,
kwargs
=
parameterDict
)
prepareEnvThread
.
start
()
time
.
sleep
(
2
)
prepareEnvThread
.
join
(
)
# wait stb ready
while
1
:
...
...
@@ -245,6 +245,7 @@ class TDTestCase:
prepareEnvThread
=
threading
.
Thread
(
target
=
self
.
prepareEnv
,
kwargs
=
parameterDict
)
prepareEnvThread
.
start
()
prepareEnvThread
.
join
()
# wait db ready
while
1
:
...
...
@@ -371,6 +372,7 @@ class TDTestCase:
prepareEnvThread
=
threading
.
Thread
(
target
=
self
.
prepareEnv
,
kwargs
=
parameterDict
)
prepareEnvThread
.
start
()
prepareEnvThread
.
join
()
# wait db ready
while
1
:
...
...
tests/system-test/test-all.bat
浏览文件 @
007470ff
...
...
@@ -61,7 +61,8 @@ goto :eof
set
tt
=
%
1
set
tt
=
%tt
:.
=
%
set
tt
=
%tt
::
=
%
set
index
=
1
set
tt
=
%tt
:
0
=
%
set
/a
index
=
1
for
%%a
in
(
%tt%
)
do
(
if
!index!
EQU
1
(
set
/a
hh
=
%%a
...
...
@@ -75,5 +76,5 @@ for %%a in (%tt%) do (
)
set
/a
index
=
index
+
1
)
set
/a
_timeTemp
=(
%hh%
*
60
+
%mm%
)*
60
+
%ss%
||
echo
hh
:
%hh%
mm
:
%mm%
ss
:
%ss%
set
/a
_timeTemp
=(
%hh%
*
60
+
%mm%
)*
60
+
%ss%
goto
:eof
\ No newline at end of file
tests/system-test/test.py
浏览文件 @
007470ff
...
...
@@ -21,6 +21,7 @@ import base64
import
json
import
platform
import
socket
import
threading
from
distutils.log
import
warn
as
printf
from
fabric2
import
Connection
sys
.
path
.
append
(
"../pytest"
)
...
...
@@ -30,6 +31,13 @@ from util.cases import *
import
taos
def
checkRunTimeError
():
import
win32gui
while
1
:
time
.
sleep
(
1
)
hwnd
=
win32gui
.
FindWindow
(
None
,
"Microsoft Visual C++ Runtime Library"
)
if
hwnd
:
os
.
system
(
"TASKKILL /F /IM taosd.exe"
)
if
__name__
==
"__main__"
:
...
...
@@ -42,9 +50,6 @@ if __name__ == "__main__":
logSql
=
True
stop
=
0
restart
=
False
windows
=
0
if
platform
.
system
().
lower
()
==
'windows'
:
windows
=
1
updateCfgDict
=
{}
execCmd
=
""
opts
,
args
=
getopt
.
gnu_getopt
(
sys
.
argv
[
1
:],
'f:p:m:l:scghrd:k:e:'
,
[
...
...
@@ -159,7 +164,9 @@ if __name__ == "__main__":
host
=
masterIp
tdLog
.
info
(
"Procedures for tdengine deployed in %s"
%
(
host
))
if
windows
:
if
platform
.
system
().
lower
()
==
'windows'
:
if
(
masterIp
==
""
and
not
fileName
[
0
:
12
]
==
"0-others
\\
udf"
):
threading
.
Thread
(
target
=
checkRunTimeError
,
daemon
=
True
).
start
()
tdCases
.
logSql
(
logSql
)
tdLog
.
info
(
"Procedures for testing self-deployment"
)
tdDnodes
.
init
(
deployPath
,
masterIp
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录