From ec06daf6778181565ae3f2c8f86ada1bd7e51da4 Mon Sep 17 00:00:00 2001 From: zyyang Date: Mon, 6 Dec 2021 20:02:57 +0800 Subject: [PATCH] [TS-816]: query cannot stop in windows --- src/query/src/qExecutor.c | 2 +- src/query/src/queryMain.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index eb21a8f5c3..6afaf21c05 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -138,7 +138,7 @@ do { \ uint64_t queryHandleId = 0; int32_t getMaximumIdleDurationSec() { - return tsShellActivityTimer * 2; + return tsShellActivityTimer * 10; } int64_t genQueryId(void) { int64_t uid = 0; diff --git a/src/query/src/queryMain.c b/src/query/src/queryMain.c index 0ba29ab904..3538edfcde 100644 --- a/src/query/src/queryMain.c +++ b/src/query/src/queryMain.c @@ -220,6 +220,7 @@ bool qTableQuery(qinfo_t qinfo, uint64_t *qId) { if (isQueryKilled(pQInfo)) { qDebug("QInfo:0x%"PRIx64" it is already killed, abort", pQInfo->qId); + pQInfo->runtimeEnv.outputBuf = NULL; return doBuildResCheck(pQInfo); } -- GitLab