Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9d148b42
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看板
提交
9d148b42
编写于
9月 15, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enh: add client policy test cases
上级
4048c992
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
111 addition
and
9 deletion
+111
-9
source/libs/scheduler/src/schTask.c
source/libs/scheduler/src/schTask.c
+20
-9
tests/system-test/fulltest.sh
tests/system-test/fulltest.sh
+91
-0
未找到文件。
source/libs/scheduler/src/schTask.c
浏览文件 @
9d148b42
...
...
@@ -842,26 +842,37 @@ int32_t schHandleExplainRes(SArray *pExplainRes) {
for
(
int32_t
i
=
0
;
i
<
resNum
;
++
i
)
{
SExplainLocalRsp
*
localRsp
=
taosArrayGet
(
pExplainRes
,
i
);
qDebug
(
"QID:0x%"
PRIx64
",TID:0x%"
PRIx64
", begin to handle LOCAL explain rsp msg"
);
qDebug
(
"QID:0x%"
PRIx64
",TID:0x%"
PRIx64
", begin to handle LOCAL explain rsp msg"
,
localRsp
->
qId
,
localRsp
->
tId
);
SCH_ERR_JRET
(
schProcessOnCbBegin
(
&
pJob
,
&
pTask
,
localRsp
->
qId
,
localRsp
->
rId
,
localRsp
->
tId
));
code
=
schProcessExplainRsp
(
pJob
,
pTask
,
&
localRsp
->
rsp
);
pJob
=
schAcquireJob
(
localRsp
->
rId
);
if
(
NULL
==
pJob
)
{
qWarn
(
"QID:0x%"
PRIx64
",TID:0x%"
PRIx64
"job no exist, may be dropped, refId:0x%"
PRIx64
,
localRsp
->
qId
,
localRsp
->
tId
,
localRsp
->
rId
);
SCH_ERR_JRET
(
TSDB_CODE_QRY_JOB_NOT_EXIST
);
}
if
(
pTask
)
{
SCH_UNLOCK_TASK
(
pTask
);
int8_t
status
=
0
;
if
(
schJobNeedToStop
(
pJob
,
&
status
))
{
SCH_TASK_DLOG
(
"will not do further processing cause of job status %s"
,
jobTaskStatusStr
(
status
));
schReleaseJob
(
pJob
->
refId
);
SCH_ERR_JRET
(
TSDB_CODE_SCH_IGNORE_ERROR
);
}
if
(
pJob
)
{
schReleaseJob
(
pJob
->
refId
);
code
=
schGetTaskInJob
(
pJob
,
localRsp
->
tId
,
&
pTask
);
if
(
TSDB_CODE_SUCCESS
==
code
)
{
code
=
schProcessExplainRsp
(
pJob
,
pTask
,
&
localRsp
->
rsp
);
}
schReleaseJob
(
pJob
->
refId
);
qDebug
(
"QID:0x%"
PRIx64
",TID:0x%"
PRIx64
", end to handle LOCAL explain rsp msg
"
);
qDebug
(
"QID:0x%"
PRIx64
",TID:0x%"
PRIx64
", end to handle LOCAL explain rsp msg
, code:%x"
,
localRsp
->
qId
,
localRsp
->
tId
,
code
);
SCH_ERR_JRET
(
code
);
localRsp
->
rsp
.
numOfPlans
=
0
;
localRsp
->
rsp
.
subplanInfo
=
NULL
;
pTask
=
NULL
;
pJob
=
NULL
;
}
_return:
...
...
tests/system-test/fulltest.sh
浏览文件 @
9d148b42
...
...
@@ -515,3 +515,94 @@ python3 ./test.py -f 2-query/tsbsQuery.py -Q 3
#python3 ./test.py -f 2-query/sml.py -Q 3
python3 ./test.py
-f
2-query/interp.py
-Q
3
#------------querPolicy 4-----------
python3 ./test.py
-f
2-query/between.py
-Q
4
python3 ./test.py
-f
2-query/distinct.py
-Q
4
python3 ./test.py
-f
2-query/varchar.py
-Q
4
python3 ./test.py
-f
2-query/ltrim.py
-Q
4
python3 ./test.py
-f
2-query/rtrim.py
-Q
4
python3 ./test.py
-f
2-query/length.py
-Q
4
python3 ./test.py
-f
2-query/char_length.py
-Q
4
python3 ./test.py
-f
2-query/upper.py
-Q
4
python3 ./test.py
-f
2-query/lower.py
-Q
4
python3 ./test.py
-f
2-query/join.py
-Q
4
python3 ./test.py
-f
2-query/join2.py
-Q
4
python3 ./test.py
-f
2-query/cast.py
-Q
4
python3 ./test.py
-f
2-query/substr.py
-Q
4
python3 ./test.py
-f
2-query/union.py
-Q
4
python3 ./test.py
-f
2-query/union1.py
-Q
4
python3 ./test.py
-f
2-query/concat.py
-Q
4
python3 ./test.py
-f
2-query/concat2.py
-Q
4
python3 ./test.py
-f
2-query/concat_ws.py
-Q
4
python3 ./test.py
-f
2-query/concat_ws2.py
-Q
4
#python3 ./test.py -f 2-query/check_tsdb.py -Q 4
python3 ./test.py
-f
2-query/spread.py
-Q
4
python3 ./test.py
-f
2-query/hyperloglog.py
-Q
4
python3 ./test.py
-f
2-query/explain.py
-Q
4
python3 ./test.py
-f
2-query/leastsquares.py
-Q
4
python3 ./test.py
-f
2-query/timezone.py
-Q
4
python3 ./test.py
-f
2-query/Now.py
-Q
4
python3 ./test.py
-f
2-query/Today.py
-Q
4
python3 ./test.py
-f
2-query/max.py
-Q
4
python3 ./test.py
-f
2-query/min.py
-Q
4
python3 ./test.py
-f
2-query/count.py
-Q
4
#python3 ./test.py -f 2-query/last.py -Q 4
python3 ./test.py
-f
2-query/first.py
-Q
4
python3 ./test.py
-f
2-query/To_iso8601.py
-Q
4
python3 ./test.py
-f
2-query/To_unixtimestamp.py
-Q
4
python3 ./test.py
-f
2-query/timetruncate.py
-Q
4
python3 ./test.py
-f
2-query/diff.py
-Q
4
python3 ./test.py
-f
2-query/Timediff.py
-Q
4
python3 ./test.py
-f
2-query/json_tag.py
-Q
4
python3 ./test.py
-f
2-query/top.py
-Q
4
python3 ./test.py
-f
2-query/bottom.py
-Q
4
python3 ./test.py
-f
2-query/percentile.py
-Q
4
python3 ./test.py
-f
2-query/apercentile.py
-Q
4
python3 ./test.py
-f
2-query/abs.py
-Q
4
python3 ./test.py
-f
2-query/ceil.py
-Q
4
python3 ./test.py
-f
2-query/floor.py
-Q
4
python3 ./test.py
-f
2-query/round.py
-Q
4
python3 ./test.py
-f
2-query/log.py
-Q
4
python3 ./test.py
-f
2-query/pow.py
-Q
4
python3 ./test.py
-f
2-query/sqrt.py
-Q
4
python3 ./test.py
-f
2-query/sin.py
-Q
4
python3 ./test.py
-f
2-query/cos.py
-Q
4
python3 ./test.py
-f
2-query/tan.py
-Q
4
python3 ./test.py
-f
2-query/arcsin.py
-Q
4
python3 ./test.py
-f
2-query/arccos.py
-Q
4
python3 ./test.py
-f
2-query/arctan.py
-Q
4
python3 ./test.py
-f
2-query/query_cols_tags_and_or.py
-Q
4
# python3 ./test.py -f 2-query/nestedQuery.py -Q 4
# python3 ./test.py -f 2-query/nestedQuery_str.py -Q 4
# python3 ./test.py -f 2-query/avg.py -Q 4
# python3 ./test.py -f 2-query/elapsed.py -Q 4
python3 ./test.py
-f
2-query/csum.py
-Q
4
#python3 ./test.py -f 2-query/mavg.py -Q 4
python3 ./test.py
-f
2-query/sample.py
-Q
4
python3 ./test.py
-f
2-query/function_diff.py
-Q
4
python3 ./test.py
-f
2-query/unique.py
-Q
4
python3 ./test.py
-f
2-query/stateduration.py
-Q
4
python3 ./test.py
-f
2-query/function_stateduration.py
-Q
4
python3 ./test.py
-f
2-query/statecount.py
-Q
4
python3 ./test.py
-f
2-query/tail.py
-Q
4
python3 ./test.py
-f
2-query/ttl_comment.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_count.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_max.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_min.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_sum.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_spread.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_apercentile.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_avg.py
-Q
4
python3 ./test.py
-f
2-query/distribute_agg_stddev.py
-Q
4
python3 ./test.py
-f
2-query/twa.py
-Q
4
python3 ./test.py
-f
2-query/irate.py
-Q
4
python3 ./test.py
-f
2-query/function_null.py
-Q
4
python3 ./test.py
-f
2-query/count_partition.py
-Q
4
python3 ./test.py
-f
2-query/max_partition.py
-Q
4
python3 ./test.py
-f
2-query/last_row.py
-Q
4
python3 ./test.py
-f
2-query/tsbsQuery.py
-Q
4
#python3 ./test.py -f 2-query/sml.py -Q 4
python3 ./test.py
-f
2-query/interp.py
-Q
4
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录