“c92e633877d9bc4fdb8f45df1ef243afc75713de”上不存在“14_高级技巧/git@gitcode.net:qyj19920704/python-demo.git”
提交 b03ca31a 编写于 作者: H Haojun Liao

fix(stream): fix error in generating checkpoint.

上级 8298f30e
......@@ -423,17 +423,18 @@ int32_t streamExecForAll(SStreamTask* pTask) {
}
if (pTask->info.taskLevel == TASK_LEVEL__SINK) {
ASSERT(pInput->type == STREAM_INPUT__DATA_BLOCK || pInput->type == STREAM_INPUT__CHECKPOINT);
if (pInput->type == STREAM_INPUT__DATA_BLOCK) {
qDebug("s-task:%s sink task start to sink %d blocks", id, batchSize);
streamTaskOutputResultBlock(pTask, (SStreamDataBlock*)pInput);
continue;
}
} else {
ASSERT(pInput->type == STREAM_INPUT__CHECKPOINT);
} else { // for sink task, do nothing.
ASSERT(pTask->status.taskStatus == TASK_STATUS__CK);
pTask->status.taskStatus = TASK_STATUS__CK_READY;
return 0;
}
}
int64_t st = taosGetTimestampMs();
qDebug("s-task:%s start to process batch of blocks, num:%d", id, batchSize);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册