diff --git a/source/dnode/vnode/src/tq/tq.c b/source/dnode/vnode/src/tq/tq.c index 873f4208027b155520ac152b0088faff7ea02bd4..eb0dfd30ba38ed0fc7518f625fcedce2b299d864 100644 --- a/source/dnode/vnode/src/tq/tq.c +++ b/source/dnode/vnode/src/tq/tq.c @@ -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); diff --git a/source/libs/stream/src/streamTask.c b/source/libs/stream/src/streamTask.c index 4bdc38b742517527961633e2d8192feab91b8a4f..bd1ffcfbb34e449d527aeaaafb2d2fd66fc710f6 100644 --- a/source/libs/stream/src/streamTask.c +++ b/source/libs/stream/src/streamTask.c @@ -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; }