fix(stream): fix error in generating checkpoint.

This commit is contained in:
Haojun Liao 2023-07-10 22:53:15 +08:00
parent 93f546f50d
commit 8a6a876f67
1 changed files with 5 additions and 4 deletions

View File

@ -527,11 +527,12 @@ int32_t streamTryExec(SStreamTask* pTask) {
qDebug("vgId:%d do vnode wide checkpoint completed, checkpoint id:%"PRId64, pMeta->vgId);
}
code = updateCheckPointInfo(pTask, pTask->checkpointingId);
if (code != TSDB_CODE_SUCCESS) {
return code;
if (pTask->info.taskLevel != TASK_LEVEL__SINK) {
code = updateCheckPointInfo(pTask, pTask->checkpointingId);
if (code != TSDB_CODE_SUCCESS) {
return code;
}
}
// send check point response to upstream task
if (pTask->info.taskLevel == TASK_LEVEL__SOURCE) {
code = streamTaskSendCheckpointSourceRsp(pTask);