fix(stream): not launch stream tasks when restarting the stream tasks.
This commit is contained in:
parent
e984affe90
commit
87c7e4c0fe
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue