提交 b2d141fe 编写于 作者: H Haojun Liao

fix(stream): limit the batch size.

上级 a76e47ef
......@@ -15,7 +15,8 @@
#include "streamInc.h"
#define MAX_STREAM_EXEC_BATCH_NUM 10240
// maximum allowed processed block batches. One block may include several submit blocks
#define MAX_STREAM_EXEC_BATCH_NUM 128
#define MIN_STREAM_EXEC_BATCH_NUM 16
bool streamTaskShouldStop(const SStreamStatus* pStatus) {
......@@ -297,6 +298,7 @@ int32_t streamExecForAll(SStreamTask* pTask) {
pInput = newRet;
streamQueueProcessSuccess(pTask->inputQueue);
if (batchSize > MAX_STREAM_EXEC_BATCH_NUM) {
qDebug("maximum batch limit:%d reached, processing, %s", MAX_STREAM_EXEC_BATCH_NUM, pTask->id.idStr);
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册