Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0dbfbbb4
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
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,发现更多精彩内容 >>
未验证
提交
0dbfbbb4
编写于
7月 08, 2022
作者:
W
wade zhang
提交者:
GitHub
7月 08, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14666 from taosdata/enh/crash_gen
Minor adjustments to crash_gen tool
上级
d008e527
fe87085b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
1 deletion
+22
-1
tests/pytest/crash_gen.sh
tests/pytest/crash_gen.sh
+6
-1
tests/pytest/crash_gen/crash_gen_main.py
tests/pytest/crash_gen/crash_gen_main.py
+16
-0
未找到文件。
tests/pytest/crash_gen.sh
浏览文件 @
0dbfbbb4
...
@@ -48,7 +48,12 @@ fi
...
@@ -48,7 +48,12 @@ fi
PYTHON_EXEC
=
python3.8
PYTHON_EXEC
=
python3.8
# First we need to set up a path for Python to find our own TAOS modules, so that "import" can work.
# First we need to set up a path for Python to find our own TAOS modules, so that "import" can work.
export
PYTHONPATH
=
$(
pwd
)
/../../src/connector/python:
$(
pwd
)
# export PYTHONPATH=$(pwd)/../../src/connector/python:$(pwd)
# NOTE: we are now pointing outside the current github, per Wade on 7/7/2022, we'll be keeping connectors outside
# and there does not seem to be a module to reference that.
PROJECT_PARENT
=
$(
pwd
)
/../../..
TAOS_PYTHON_PROJECT_DIR
=
$PROJECT_PARENT
/taos-connector-python
export
PYTHONPATH
=
$TAOS_PYTHON_PROJECT_DIR
:
$(
pwd
)
# Then let us set up the library path so that our compiled SO file can be loaded by Python
# Then let us set up the library path so that our compiled SO file can be loaded by Python
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIB_DIR
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$LIB_DIR
...
...
tests/pytest/crash_gen/crash_gen_main.py
浏览文件 @
0dbfbbb4
...
@@ -466,6 +466,7 @@ class ThreadCoordinator:
...
@@ -466,6 +466,7 @@ class ThreadCoordinator:
self
.
_te
=
None
# No more executor, time to end
self
.
_te
=
None
# No more executor, time to end
Logging
.
debug
(
"Main thread tapping all threads one last time..."
)
Logging
.
debug
(
"Main thread tapping all threads one last time..."
)
self
.
tapAllThreads
()
# Let the threads run one last time
self
.
tapAllThreads
()
# Let the threads run one last time
#TODO: looks like we are not capturing the failures for the last step yet (i.e. calling registerFailure if neccessary)
Logging
.
debug
(
"
\r\n\n
--> Main thread ready to finish up..."
)
Logging
.
debug
(
"
\r\n\n
--> Main thread ready to finish up..."
)
Logging
.
debug
(
"Main thread joining all threads"
)
Logging
.
debug
(
"Main thread joining all threads"
)
...
@@ -1290,6 +1291,7 @@ class Task():
...
@@ -1290,6 +1291,7 @@ class Task():
def
_isErrAcceptable
(
self
,
errno
,
msg
):
def
_isErrAcceptable
(
self
,
errno
,
msg
):
if
errno
in
[
if
errno
in
[
# TDengine 2.x Error Codes:
0x05
,
# TSDB_CODE_RPC_NOT_READY
0x05
,
# TSDB_CODE_RPC_NOT_READY
0x0B
,
# Unable to establish connection, more details in TD-1648
0x0B
,
# Unable to establish connection, more details in TD-1648
# 0x200, # invalid SQL, TODO: re-examine with TD-934
# 0x200, # invalid SQL, TODO: re-examine with TD-934
...
@@ -1310,6 +1312,18 @@ class Task():
...
@@ -1310,6 +1312,18 @@ class Task():
0x14
,
# db not ready, errno changed
0x14
,
# db not ready, errno changed
0x600
,
# Invalid table ID, why?
0x600
,
# Invalid table ID, why?
0x218
,
# Table does not exist
0x218
,
# Table does not exist
# TDengine 3.0 Error Codes:
0x0333
,
# Object is creating # TODO: this really is NOT an acceptable error
0x03A0
,
# STable already exists
0x03A1
,
# STable [does] not exist
0x03AA
,
# Tag already exists
0x0603
,
# Table already exists
0x2602
,
# Table does not exist
0x260d
,
# Tags number not matched
1000
# REST catch-all error
1000
# REST catch-all error
]:
]:
return
True
# These are the ALWAYS-ACCEPTABLE ones
return
True
# These are the ALWAYS-ACCEPTABLE ones
...
@@ -1749,6 +1763,8 @@ class TdSuperTable:
...
@@ -1749,6 +1763,8 @@ class TdSuperTable:
tagType
=
tags
[
tagName
]
tagType
=
tags
[
tagName
]
if
tagType
==
'BINARY'
:
if
tagType
==
'BINARY'
:
tagStrs
.
append
(
"'Beijing-Shanghai-LosAngeles'"
)
tagStrs
.
append
(
"'Beijing-Shanghai-LosAngeles'"
)
elif
tagType
==
'VARCHAR'
:
tagStrs
.
append
(
"'London-Paris-Berlin'"
)
elif
tagType
==
'FLOAT'
:
elif
tagType
==
'FLOAT'
:
tagStrs
.
append
(
'9.9'
)
tagStrs
.
append
(
'9.9'
)
elif
tagType
==
'INT'
:
elif
tagType
==
'INT'
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录