From 5e32aea1f96aaed454d3fd75844c6917a36d4405 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 7 Jan 2024 00:27:18 +0800 Subject: [PATCH] fix(stream): jump out of loop when downstream is blocking. --- source/libs/stream/src/streamExec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/stream/src/streamExec.c b/source/libs/stream/src/streamExec.c index 7b740a8e7a..eb5a432235 100644 --- a/source/libs/stream/src/streamExec.c +++ b/source/libs/stream/src/streamExec.c @@ -588,7 +588,7 @@ int32_t doStreamExecTask(SStreamTask* pTask) { if (pTask->inputq.status == TASK_INPUT_STATUS__BLOCKED) { stWarn("s-task:%s downstream task inputQ blocked, idle for 1sec and retry", pTask->id.idStr); setTaskSchedInfo(pTask, 1000); - continue; + break; } /*int32_t code = */ streamTaskGetDataFromInputQ(pTask, &pInput, &numOfBlocks, &blockSize);