From 111e1b2f60b5d22b6fd5107a067668e5dff622b9 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 3 Jun 2024 09:54:28 +0800 Subject: [PATCH] fix(stream): disable stream checkpoint when related fill-history task exists. --- source/dnode/mnode/impl/src/mndStream.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/dnode/mnode/impl/src/mndStream.c b/source/dnode/mnode/impl/src/mndStream.c index 48549fce42..79a04a5348 100644 --- a/source/dnode/mnode/impl/src/mndStream.c +++ b/source/dnode/mnode/impl/src/mndStream.c @@ -1130,6 +1130,15 @@ static int32_t mndCheckNodeStatus(SMnode *pMnode) { ready = false; break; } + + if (pEntry->hTaskId != 0) { + mDebug("s-task:0x%" PRIx64 "-0x%x (nodeId:%d) status:%s related fill-history task:0x%" PRIx64 + " exists, checkpoint not issued", + pEntry->id.streamId, (int32_t)pEntry->id.taskId, pEntry->nodeId, streamTaskGetStatusStr(pEntry->status), + pEntry->hTaskId); + ready = false; + break; + } } taosThreadMutexUnlock(&execInfo.lock);