From 2da67392c6af1838a4bb649e4066936335282f56 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 7 Aug 2023 19:30:23 +0800 Subject: [PATCH] fix(stream): commit the update to make sure the new state of tasks will be persistent to disk. --- source/libs/stream/src/streamRecover.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/stream/src/streamRecover.c b/source/libs/stream/src/streamRecover.c index df45ff2759..35612eb180 100644 --- a/source/libs/stream/src/streamRecover.c +++ b/source/libs/stream/src/streamRecover.c @@ -495,11 +495,13 @@ int32_t streamProcessScanHistoryFinishRsp(SStreamTask* pTask) { taosWLockLatch(&pMeta->lock); streamMetaSaveTask(pMeta, pTask); + streamMetaCommit(pMeta); taosWUnLockLatch(&pMeta->lock); // history data scan in the stream time window finished, now let's enable the pause streamTaskEnablePause(pTask); + // for source tasks, let's continue execute. if (pTask->info.taskLevel == TASK_LEVEL__SOURCE) { streamSchedExec(pTask); } -- GitLab