fix(stream): not restart tasks when in restoring procedure.

This commit is contained in:
Haojun Liao 2023-08-25 11:28:28 +08:00
parent 38bb123701
commit 4c7ad54c9c
1 changed files with 23 additions and 20 deletions

View File

@ -1884,9 +1884,11 @@ int32_t tqProcessTaskUpdateReq(STQ* pTq, SRpcMsg* pMsg) {
_end:
tDecoderClear(&decoder);
// tmsgSendRsp(&rsp);
if (restartTasks) {
if (!pTq->pVnode->restored) {
tqDebug("vgId:%d vnode restore not completed, not restart the tasks", vgId);
} else {
tqDebug("vgId:%d all tasks are stopped, restart them", vgId);
taosWLockLatch(&pMeta->lock);
@ -1910,6 +1912,7 @@ _end:
tqCheckStreamStatus(pTq);
}
}
}
return rsp.code;
}