Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f3f38938
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
f3f38938
编写于
7月 13, 2023
作者:
Y
yihaoDeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix compile error
上级
2ec67bcc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
source/libs/stream/src/streamDispatch.c
source/libs/stream/src/streamDispatch.c
+10
-10
未找到文件。
source/libs/stream/src/streamDispatch.c
浏览文件 @
f3f38938
...
@@ -443,9 +443,9 @@ static int32_t doDispatchCheckpointMsg(SStreamTask* pTask, const SStreamCheckpoi
...
@@ -443,9 +443,9 @@ static int32_t doDispatchCheckpointMsg(SStreamTask* pTask, const SStreamCheckpoi
}
}
tEncoderClear
(
&
encoder
);
tEncoderClear
(
&
encoder
);
initRpcMsg
(
&
msg
,
TDMT_STREAM_TASK_CHECKPOINT
,
buf
,
tlen
+
sizeof
(
SMsgHead
));
initRpcMsg
(
&
msg
,
TDMT_STREAM_TASK_CHECKPOINT
,
buf
,
tlen
+
sizeof
(
SMsgHead
));
qDebug
(
"s-task:%s (level:%d, vgId:%d) dispatch checkpoint msg to s-task:0x%"
PRIx64
":0x%x (vgId:%d)"
,
pTask
->
id
.
idStr
,
qDebug
(
"s-task:%s (level:%d, vgId:%d) dispatch checkpoint msg to s-task:0x%"
PRIx64
":0x%x (vgId:%d)"
,
pTask
->
info
.
taskLevel
,
pTask
->
info
.
nodeId
,
pReq
->
streamId
,
pReq
->
downstreamTaskId
,
nodeId
);
pTask
->
i
d
.
idStr
,
pTask
->
i
nfo
.
taskLevel
,
pTask
->
info
.
nodeId
,
pReq
->
streamId
,
pReq
->
downstreamTaskId
,
nodeId
);
tmsgSendReq
(
pEpSet
,
&
msg
);
tmsgSendReq
(
pEpSet
,
&
msg
);
return
0
;
return
0
;
...
@@ -518,16 +518,16 @@ int32_t streamTaskSendCheckpointRsp(SStreamTask* pTask) {
...
@@ -518,16 +518,16 @@ int32_t streamTaskSendCheckpointRsp(SStreamTask* pTask) {
int32_t
num
=
taosArrayGetSize
(
pTask
->
pRpcMsgList
);
int32_t
num
=
taosArrayGetSize
(
pTask
->
pRpcMsgList
);
ASSERT
(
taosArrayGetSize
(
pTask
->
pUpstreamEpInfoList
)
==
num
);
ASSERT
(
taosArrayGetSize
(
pTask
->
pUpstreamEpInfoList
)
==
num
);
qDebug
(
"s-task:%s level:%d checkpoint completed msg sent to %d upstream tasks"
,
pTask
->
id
.
idStr
,
pTask
->
info
.
taskLevel
,
qDebug
(
"s-task:%s level:%d checkpoint completed msg sent to %d upstream tasks"
,
pTask
->
id
.
idStr
,
num
);
pTask
->
info
.
taskLevel
,
num
);
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
num
;
++
i
)
{
SRpcMsg
*
pMsg
=
taosArrayGet
(
pTask
->
pRpcMsgList
,
i
);
SRpcMsg
*
pMsg
=
taosArrayGet
(
pTask
->
pRpcMsgList
,
i
);
tmsgSendRsp
(
pMsg
);
tmsgSendRsp
(
pMsg
);
}
}
taosArrayClear
(
pTask
->
pRpcMsgList
);
taosArrayClear
(
pTask
->
pRpcMsgList
);
qDebug
(
"s-task:%s level:%d source checkpoint completed msg sent to upstream"
,
pTask
->
id
.
idStr
);
qDebug
(
"s-task:%s level:%d source checkpoint completed msg sent to upstream"
,
pTask
->
id
.
idStr
,
pTask
->
info
.
taskLevel
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
@@ -540,7 +540,7 @@ int32_t streamTaskSendCheckpointSourceRsp(SStreamTask* pTask) {
...
@@ -540,7 +540,7 @@ int32_t streamTaskSendCheckpointSourceRsp(SStreamTask* pTask) {
tmsgSendRsp
(
pMsg
);
tmsgSendRsp
(
pMsg
);
taosArrayClear
(
pTask
->
pRpcMsgList
);
taosArrayClear
(
pTask
->
pRpcMsgList
);
qDebug
(
"s-task:%s level:%d source checkpoint completed msg sent to mnode"
,
pTask
->
id
.
idStr
);
qDebug
(
"s-task:%s level:%d source checkpoint completed msg sent to mnode"
,
pTask
->
id
.
idStr
,
pTask
->
info
.
taskLevel
);
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
@@ -631,7 +631,7 @@ int32_t doDispatchScanHistoryFinishMsg(SStreamTask* pTask, const SStreamScanHist
...
@@ -631,7 +631,7 @@ int32_t doDispatchScanHistoryFinishMsg(SStreamTask* pTask, const SStreamScanHist
tEncoderClear
(
&
encoder
);
tEncoderClear
(
&
encoder
);
msg
.
info
.
noResp
=
1
;
msg
.
info
.
noResp
=
1
;
initRpcMsg
(
&
msg
,
TDMT_STREAM_SCAN_HISTORY_FINISH
,
buf
,
tlen
+
sizeof
(
SMsgHead
));
initRpcMsg
(
&
msg
,
TDMT_STREAM_SCAN_HISTORY_FINISH
,
buf
,
tlen
+
sizeof
(
SMsgHead
));
tmsgSendReq
(
pEpSet
,
&
msg
);
tmsgSendReq
(
pEpSet
,
&
msg
);
const
char
*
pStatus
=
streamGetTaskStatusStr
(
pTask
->
status
.
taskStatus
);
const
char
*
pStatus
=
streamGetTaskStatusStr
(
pTask
->
status
.
taskStatus
);
...
@@ -797,7 +797,7 @@ int32_t streamAddCheckpointSourceRspMsg(SStreamCheckpointSourceReq* pReq, SRpcHa
...
@@ -797,7 +797,7 @@ int32_t streamAddCheckpointSourceRspMsg(SStreamCheckpointSourceReq* pReq, SRpcHa
SRpcMsg
rspMsg
=
{.
code
=
0
,
.
pCont
=
pBuf
,
.
contLen
=
sizeof
(
SMsgHead
)
+
len
,
.
info
=
*
pRpcInfo
};
SRpcMsg
rspMsg
=
{.
code
=
0
,
.
pCont
=
pBuf
,
.
contLen
=
sizeof
(
SMsgHead
)
+
len
,
.
info
=
*
pRpcInfo
};
taosArrayPush
(
pTask
->
pRpcMsgList
,
&
rspMsg
);
taosArrayPush
(
pTask
->
pRpcMsgList
,
&
rspMsg
);
qDebug
(
"s-task:%s add checkpoint rsp msg, total:%d"
,
pTask
->
id
.
idStr
,
(
int32_t
)
taosArrayGetSize
(
pTask
->
pRpcMsgList
));
qDebug
(
"s-task:%s add checkpoint rsp msg, total:%d"
,
pTask
->
id
.
idStr
,
(
int32_t
)
taosArrayGetSize
(
pTask
->
pRpcMsgList
));
return
TSDB_CODE_SUCCESS
;
return
TSDB_CODE_SUCCESS
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录