Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fc1cfb56
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
fc1cfb56
编写于
8月 01, 2020
作者:
S
Steven Li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
now able to replicate TD-1038
上级
cbe2602e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
6 deletion
+12
-6
tests/pytest/crash_gen.py
tests/pytest/crash_gen.py
+12
-6
未找到文件。
tests/pytest/crash_gen.py
浏览文件 @
fc1cfb56
...
...
@@ -238,7 +238,7 @@ class WorkerThread:
class
ThreadCoordinator
:
WORKER_THREAD_TIMEOUT
=
30
WORKER_THREAD_TIMEOUT
=
60
# one minute
def
__init__
(
self
,
pool
:
ThreadPool
,
dbManager
):
self
.
_curStep
=
-
1
# first step is 0
...
...
@@ -388,7 +388,9 @@ class ThreadCoordinator:
except
taos
.
error
.
ProgrammingError
as
err
:
transitionFailed
=
True
errno2
=
err
.
errno
if
(
err
.
errno
>
0
)
else
0x80000000
+
err
.
errno
# correct error scheme
logger
.
info
(
"Transition failed: errno=0x{:X}, msg: {}"
.
format
(
errno2
,
err
))
errMsg
=
"Transition failed: errno=0x{:X}, msg: {}"
.
format
(
errno2
,
err
)
logger
.
info
(
errMsg
)
self
.
_execStats
.
registerFailure
(
errMsg
)
# Then we move on to the next step
self
.
_releaseAllWorkerThreads
(
transitionFailed
)
...
...
@@ -812,7 +814,7 @@ class DbConnNative(DbConn):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
break
if
buildPath
==
None
:
raise
RuntimeError
(
"Failed to determine buildPath, selfPath={}"
.
format
(
self
_p
ath
))
raise
RuntimeError
(
"Failed to determine buildPath, selfPath={}"
.
format
(
self
P
ath
))
return
buildPath
...
...
@@ -2325,7 +2327,7 @@ class ServiceManagerThread:
if
self
.
_tdeSubProcess
.
isRunning
():
# still running
print
(
"FAILED to stop sub process, it is still running... pid = {}"
.
format
(
self
.
s
ubProcess
.
pid
))
self
.
_tdeS
ubProcess
.
pid
))
else
:
self
.
_tdeSubProcess
=
None
# not running any more
self
.
join
()
# stop the thread, change the status, etc.
...
...
@@ -2469,15 +2471,19 @@ class TdeSubProcess:
svcCmd
=
[
taosdPath
,
'-c'
,
cfgPath
]
svcCmdSingle
=
"{} -c {}"
.
format
(
taosdPath
,
cfgPath
)
# svcCmd = ['vmstat', '1']
if
self
.
subProcess
:
# already there
raise
RuntimeError
(
"Corrupt process state"
)
# print("Starting service: {}".format(svcCmd))
self
.
subProcess
=
subprocess
.
Popen
(
svcCmd
,
# svcCmd, shell=False,
svcCmdSingle
,
shell
=
True
,
# capture core dump?
stdout
=
subprocess
.
PIPE
,
# bufsize=1, # not supported in binary mode
close_fds
=
ON_POSIX
)
# had text=True, which interferred with reading EOF
close_fds
=
ON_POSIX
)
# had text=True, which interferred with reading EOF
def
stop
(
self
):
if
not
self
.
subProcess
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录