Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
31f57435
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看板
提交
31f57435
编写于
11月 03, 2022
作者:
L
Liu Jicong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:log empty msg
上级
15ad147c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
31 addition
and
19 deletion
+31
-19
source/dnode/mgmt/mgmt_snode/src/smWorker.c
source/dnode/mgmt/mgmt_snode/src/smWorker.c
+5
-1
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
+6
-2
source/dnode/mgmt/node_mgmt/src/dmTransport.c
source/dnode/mgmt/node_mgmt/src/dmTransport.c
+5
-1
source/dnode/snode/src/snode.c
source/dnode/snode/src/snode.c
+1
-1
tests/script/tsim/stream/fillHistoryBasic1.sim
tests/script/tsim/stream/fillHistoryBasic1.sim
+14
-14
未找到文件。
source/dnode/mgmt/mgmt_snode/src/smWorker.c
浏览文件 @
31f57435
...
...
@@ -58,7 +58,11 @@ static void smProcessStreamQueue(SQueueInfo *pInfo, SRpcMsg *pMsg) {
dTrace
(
"msg:%p, get from snode-stream queue"
,
pMsg
);
int32_t
code
=
sndProcessStreamMsg
(
pMgmt
->
pSnode
,
pMsg
);
if
(
code
<
0
)
{
dGError
(
"snd, msg:%p failed to process stream msg %s since %s"
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
(
code
));
if
(
pMsg
)
{
dGError
(
"snd, msg:%p failed to process stream msg %s since %s"
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
(
code
));
}
else
{
dGError
(
"snd, msg:%p failed to process stream empty msg since %s"
,
pMsg
,
terrstr
(
code
));
}
smSendRsp
(
pMsg
,
terrno
);
}
...
...
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
浏览文件 @
31f57435
...
...
@@ -86,8 +86,12 @@ static void vmProcessStreamQueue(SQueueInfo *pInfo, SRpcMsg *pMsg) {
int32_t
code
=
vnodeProcessFetchMsg
(
pVnode
->
pImpl
,
pMsg
,
pInfo
);
if
(
code
!=
0
)
{
if
(
terrno
!=
0
)
code
=
terrno
;
dGError
(
"vgId:%d, msg:%p failed to process stream msg %s since %s"
,
pVnode
->
vgId
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
(
code
));
if
(
pMsg
)
{
dGError
(
"vgId:%d, msg:%p failed to process stream msg %s since %s"
,
pVnode
->
vgId
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
(
code
));
}
else
{
dGError
(
"vgId:%d, msg:%p failed to process stream empty msg since %s"
,
pVnode
->
vgId
,
pMsg
,
terrstr
(
code
));
}
vmSendRsp
(
pMsg
,
code
);
}
...
...
source/dnode/mgmt/node_mgmt/src/dmTransport.c
浏览文件 @
31f57435
...
...
@@ -157,7 +157,11 @@ static void dmProcessRpcMsg(SDnode *pDnode, SRpcMsg *pRpc, SEpSet *pEpSet) {
_OVER:
if
(
code
!=
0
)
{
if
(
terrno
!=
0
)
code
=
terrno
;
dGTrace
(
"msg:%p, failed to process %s since %s"
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
());
if
(
pMsg
)
{
dGTrace
(
"msg:%p, failed to process %s since %s"
,
pMsg
,
TMSG_INFO
(
pMsg
->
msgType
),
terrstr
());
}
else
{
dGTrace
(
"msg:%p, failed to process empty msg since %s"
,
pMsg
,
terrstr
());
}
if
(
IsReq
(
pRpc
))
{
SRpcMsg
rsp
=
{.
code
=
code
,
.
info
=
pRpc
->
info
};
...
...
source/dnode/snode/src/snode.c
浏览文件 @
31f57435
...
...
@@ -231,7 +231,7 @@ int32_t sndProcessTaskRetrieveReq(SSnode *pSnode, SRpcMsg *pMsg) {
int32_t
sndProcessTaskDispatchRsp
(
SSnode
*
pSnode
,
SRpcMsg
*
pMsg
)
{
SStreamDispatchRsp
*
pRsp
=
POINTER_SHIFT
(
pMsg
->
pCont
,
sizeof
(
SMsgHead
));
int32_t
taskId
=
pRsp
->
upstreamTaskId
;
int32_t
taskId
=
ntohl
(
pRsp
->
upstreamTaskId
)
;
SStreamTask
*
pTask
=
streamMetaGetTask
(
pSnode
->
pMeta
,
taskId
);
if
(
pTask
)
{
streamProcessDispatchRsp
(
pTask
,
pRsp
,
pMsg
->
code
);
...
...
tests/script/tsim/stream/fillHistoryBasic1.sim
浏览文件 @
31f57435
...
...
@@ -139,7 +139,7 @@ if $data35 != 3 then
endi
sql insert into t1 values(1648791223001,12,14,13,11.1);
sleep
5
00
sleep
10
00
sql select * from streamt;
print count(*) , count(d) , sum(a) , max(b) , min(c)
...
...
@@ -256,7 +256,7 @@ if $data35 != 3 then
endi
sql insert into t1 values(1648791223002,12,14,13,11.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -286,7 +286,7 @@ if $data15 != 13 then
endi
sql insert into t1 values(1648791223003,12,14,13,11.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -318,7 +318,7 @@ endi
sql insert into t1 values(1648791223001,1,1,1,1.1);
sql insert into t1 values(1648791223002,2,2,2,2.1);
sql insert into t1 values(1648791223003,3,3,3,3.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -350,7 +350,7 @@ endi
sql insert into t1 values(1648791233003,3,2,3,2.1);
sql insert into t1 values(1648791233002,5,6,7,8.1);
sql insert into t1 values(1648791233002,3,2,3,2.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 2
...
...
@@ -380,7 +380,7 @@ if $data25 != 3 then
endi
sql insert into t1 values(1648791213004,4,2,3,4.1) (1648791213006,5,4,7,9.1) (1648791213004,40,20,30,40.1) (1648791213005,4,2,3,4.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 0
...
...
@@ -410,7 +410,7 @@ if $data05 != 3 then
endi
sql insert into t1 values(1648791223004,4,2,3,4.1) (1648791233006,5,4,7,9.1) (1648791223004,40,20,30,40.1) (1648791233005,4,2,3,4.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -594,7 +594,7 @@ if $data35 != 3 then
endi
sql insert into t1 values(1648791223001,12,14,13,11.1);
sleep
5
00
sleep
10
00
sql select * from streamt;
print count(*) , count(d) , sum(a) , max(b) , min(c)
...
...
@@ -711,7 +711,7 @@ if $data35 != 3 then
endi
sql insert into t1 values(1648791223002,12,14,13,11.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -741,7 +741,7 @@ if $data15 != 13 then
endi
sql insert into t1 values(1648791223003,12,14,13,11.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -773,7 +773,7 @@ endi
sql insert into t1 values(1648791223001,1,1,1,1.1);
sql insert into t1 values(1648791223002,2,2,2,2.1);
sql insert into t1 values(1648791223003,3,3,3,3.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
@@ -805,7 +805,7 @@ endi
sql insert into t1 values(1648791233003,3,2,3,2.1);
sql insert into t1 values(1648791233002,5,6,7,8.1);
sql insert into t1 values(1648791233002,3,2,3,2.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 2
...
...
@@ -835,7 +835,7 @@ if $data25 != 3 then
endi
sql insert into t1 values(1648791213004,4,2,3,4.1) (1648791213006,5,4,7,9.1) (1648791213004,40,20,30,40.1) (1648791213005,4,2,3,4.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 0
...
...
@@ -865,7 +865,7 @@ if $data05 != 3 then
endi
sql insert into t1 values(1648791223004,4,2,3,4.1) (1648791233006,5,4,7,9.1) (1648791223004,40,20,30,40.1) (1648791233005,4,2,3,4.1);
sleep 100
sleep 100
0
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
# row 1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录