fix(stream): not launch stream tasks when restarting the stream tasks.

This commit is contained in:
Haojun Liao 2023-08-11 16:19:46 +08:00
parent e984affe90
commit 87c7e4c0fe
2 changed files with 6 additions and 1 deletions

View File

@ -1180,6 +1180,8 @@ int32_t tqProcessTaskDeployReq(STQ* pTq, int64_t sversion, char* msg, int32_t ms
if (p != NULL) {
streamMetaReleaseTask(pStreamMeta, p);
}
} else {
tqDebug("vgId:%d not leader, not launch stream task s-task:0x%x", vgId, taskId);
}
} else {
tqWarn("vgId:%d failed to add s-task:0x%x, since already exists in meta store", vgId, taskId);

View File

@ -495,7 +495,10 @@ int32_t streamTaskRestart(SStreamTask* pTask, const char* pDir, bool startTask)
pTask->status.stage, streamGetTaskStatusStr(pTask->status.taskStatus));
// 3. start to check the downstream status
streamTaskCheckDownstreamTasks(pTask);
if (startTask) {
streamTaskCheckDownstreamTasks(pTask);
}
return 0;
}