• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

taosdata / TDengine / #3523

06 Nov 2024 02:29AM UTC coverage: 55.861% (-2.4%) from 58.216%
#3523

push

travis-ci

web-flow
Merge pull request #28551 from taosdata/feat/TS-5215-2

test(blob): testing & fixes for blob

106075 of 245834 branches covered (43.15%)

Branch coverage included in aggregate %.

0 of 15 new or added lines in 2 files covered. (0.0%)

17003 existing lines in 254 files now uncovered.

181910 of 269703 relevant lines covered (67.45%)

1527639.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.3
/source/dnode/vnode/src/tq/tqStreamTask.c
1
/*
2
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
3
 *
4
 * This program is free software: you can use, redistribute, and/or modify
5
 * it under the terms of the GNU Affero General Public License, version 3
6
 * or later ("AGPL"), as published by the Free Software Foundation.
7
 *
8
 * This program is distributed in the hope that it will be useful, but WITHOUT
9
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
 * FITNESS FOR A PARTICULAR PURPOSE.
11
 *
12
 * You should have received a copy of the GNU Affero General Public License
13
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14
 */
15

16
#include "tq.h"
17
#include "vnd.h"
18

19
#define MAX_REPEAT_SCAN_THRESHOLD 3
20
#define SCAN_WAL_IDLE_DURATION    100
21

22
typedef struct SBuildScanWalMsgParam {
23
  int64_t metaId;
24
  int32_t numOfTasks;
25
} SBuildScanWalMsgParam;
26

27
static int32_t doScanWalForAllTasks(SStreamMeta* pStreamMeta, bool* pScanIdle);
28
static int32_t setWalReaderStartOffset(SStreamTask* pTask, int32_t vgId);
29
static bool    handleFillhistoryScanComplete(SStreamTask* pTask, int64_t ver);
30
static bool    taskReadyForDataFromWal(SStreamTask* pTask);
31
static int32_t doPutDataIntoInputQ(SStreamTask* pTask, int64_t maxVer, int32_t* numOfItems, bool* pSucc);
32
static int32_t tqScanWalInFuture(STQ* pTq, int32_t numOfTasks, int32_t idleDuration);
33

34
// extract data blocks(submit/delete) from WAL, and add them into the input queue for all the sources tasks.
35
int32_t tqScanWal(STQ* pTq) {
32,357✔
36
  SStreamMeta* pMeta = pTq->pStreamMeta;
32,357✔
37
  int32_t      vgId = pMeta->vgId;
32,357✔
38
  int64_t      st = taosGetTimestampMs();
32,358✔
39
  int32_t      numOfTasks = 0;
32,358✔
40
  bool         shouldIdle = true;
32,358✔
41

42
  tqDebug("vgId:%d continue to check if data in wal are available, scanCounter:%d", vgId, pMeta->scanInfo.scanCounter);
32,358✔
43

44
  // check all tasks
45
  int32_t code = doScanWalForAllTasks(pMeta, &shouldIdle);
32,358✔
46
  if (code) {
32,345!
47
    tqError("vgId:%d failed to start all tasks, try next time, code:%s", vgId, tstrerror(code));
×
48
    return code;
×
49
  }
50

51
  streamMetaWLock(pMeta);
32,345✔
52
  int32_t times = (--pMeta->scanInfo.scanCounter);
32,343✔
53
  if (times < 0) {
32,343!
54
    tqError("vgId:%d invalid scan counter:%d, reset to 0", vgId, times);
×
55
    times = 0;
×
56
  }
57

58
  numOfTasks = taosArrayGetSize(pMeta->pTaskList);
32,343✔
59
  streamMetaWUnLock(pMeta);
32,340✔
60

61
  int64_t el = (taosGetTimestampMs() - st);
32,348✔
62
  tqDebug("vgId:%d scan wal for stream tasks completed, elapsed time:%" PRId64 " ms", vgId, el);
32,348✔
63

64
  if (times > 0) {
32,348✔
65
    tqDebug("vgId:%d scan wal for stream tasks for %d times in %dms", vgId, times, SCAN_WAL_IDLE_DURATION);
9,836✔
66
    code = tqScanWalInFuture(pTq, numOfTasks, SCAN_WAL_IDLE_DURATION);
9,836✔
67
    if (code) {
9,840!
68
      tqError("vgId:%d sched scan wal in %dms failed, ignore this failure", vgId, SCAN_WAL_IDLE_DURATION);
×
69
    }
70
  }
71

72
  return code;
32,349✔
73
}
74

75
static void doStartScanWal(void* param, void* tmrId) {
9,840✔
76
  int32_t vgId = 0;
9,840✔
77
  STQ*    pTq = NULL;
9,840✔
78
  int32_t code = 0;
9,840✔
79

80
  SBuildScanWalMsgParam* pParam = (SBuildScanWalMsgParam*)param;
9,840✔
81

82
  SStreamMeta* pMeta = taosAcquireRef(streamMetaRefPool, pParam->metaId);
9,840✔
83
  if (pMeta == NULL) {
9,840!
84
    tqError("metaRid:%" PRId64 " not valid now, stream meta has been freed", pParam->metaId);
×
85
    taosMemoryFree(pParam);
×
86
    return;
×
87
  }
88

89
  vgId = pMeta->vgId;
9,840✔
90
  pTq = pMeta->ahandle;
9,840✔
91

92
  tqDebug("vgId:%d create msg to start wal scan, numOfTasks:%d, vnd restored:%d", vgId, pParam->numOfTasks,
9,840✔
93
          pTq->pVnode->restored);
94

95
  code = streamTaskSchedTask(&pTq->pVnode->msgCb, vgId, 0, 0, STREAM_EXEC_T_EXTRACT_WAL_DATA);
9,840✔
96
  if (code) {
9,840✔
97
    tqError("vgId:%d failed sched task to scan wal, code:%s", vgId, tstrerror(code));
94!
98
  }
99

100
  code = taosReleaseRef(streamMetaRefPool, pParam->metaId);
9,840✔
101
  if (code) {
9,840!
102
    tqError("vgId:%d failed to release ref for streamMeta, rid:%" PRId64 " code:%s", vgId, pParam->metaId,
×
103
            tstrerror(code));
104
  }
105

106
  taosMemoryFree(pParam);
9,840✔
107
}
108

109
int32_t tqScanWalInFuture(STQ* pTq, int32_t numOfTasks, int32_t idleDuration) {
9,833✔
110
  SStreamMeta*           pMeta = pTq->pStreamMeta;
9,833✔
111
  int32_t                code = 0;
9,833✔
112
  int32_t                vgId = TD_VID(pTq->pVnode);
9,833✔
113
  tmr_h                  pTimer = NULL;
9,833✔
114
  SBuildScanWalMsgParam* pParam = NULL;
9,833✔
115

116
  pParam = taosMemoryMalloc(sizeof(SBuildScanWalMsgParam));
9,833✔
117
  if (pParam == NULL) {
9,835!
118
    return terrno;
×
119
  }
120

121
  pParam->metaId = pMeta->rid;
9,835✔
122
  pParam->numOfTasks = numOfTasks;
9,835✔
123

124
  code = streamTimerGetInstance(&pTimer);
9,835✔
125
  if (code) {
9,834!
126
    tqError("vgId:%d failed to get tmr ctrl during sched scan wal", vgId);
×
127
    taosMemoryFree(pParam);
×
128
  } else {
129
    streamTmrStart(doStartScanWal, idleDuration, pParam, pTimer, &pMeta->scanInfo.scanTimer, vgId, "scan-wal-fut");
9,834✔
130
  }
131

132
  return code;
9,840✔
133
}
134

135
int32_t tqScanWalAsync(STQ* pTq, bool ckPause) {
62,120✔
136
  int32_t      vgId = TD_VID(pTq->pVnode);
62,120✔
137
  SStreamMeta* pMeta = pTq->pStreamMeta;
62,120✔
138
  bool         alreadyRestored = pTq->pVnode->restored;
62,120✔
139
  int32_t      numOfTasks = 0;
62,120✔
140

141
  // do not launch the stream tasks, if it is a follower or not restored vnode.
142
  if (!(vnodeIsRoleLeader(pTq->pVnode) && alreadyRestored)) {
62,120!
143
    return TSDB_CODE_SUCCESS;
974✔
144
  }
145

146
  streamMetaWLock(pMeta);
61,206✔
147

148
  numOfTasks = taosArrayGetSize(pMeta->pTaskList);
61,201✔
149
  if (numOfTasks == 0) {
61,174✔
150
    tqDebug("vgId:%d no stream tasks existed to run", vgId);
2!
151
    streamMetaWUnLock(pMeta);
2✔
152
    return 0;
2✔
153
  }
154

155
  if (pMeta->startInfo.startAllTasks) {
61,172✔
156
    tqTrace("vgId:%d in restart procedure, not scan wal", vgId);
2,092!
157
    streamMetaWUnLock(pMeta);
2,092✔
158
    return 0;
2,092✔
159
  }
160

161
  pMeta->scanInfo.scanCounter += 1;
59,080✔
162
  if (pMeta->scanInfo.scanCounter > MAX_REPEAT_SCAN_THRESHOLD) {
59,080✔
163
    pMeta->scanInfo.scanCounter = MAX_REPEAT_SCAN_THRESHOLD;
26,060✔
164
  }
165

166
  if (pMeta->scanInfo.scanCounter > 1) {
59,080✔
167
    tqDebug("vgId:%d wal read task has been launched, remain scan times:%d", vgId, pMeta->scanInfo.scanCounter);
36,053✔
168
    streamMetaWUnLock(pMeta);
36,053✔
169
    return 0;
36,056✔
170
  }
171

172
  int32_t numOfPauseTasks = pMeta->numOfPausedTasks;
23,027✔
173
  if (ckPause && numOfTasks == numOfPauseTasks) {
23,027✔
174
    tqDebug("vgId:%d ignore all submit, all streams had been paused, reset the walScanCounter", vgId);
45✔
175

176
    // reset the counter value, since we do not launch the scan wal operation.
177
    pMeta->scanInfo.scanCounter = 0;
45✔
178
    streamMetaWUnLock(pMeta);
45✔
179
    return 0;
45✔
180
  }
181

182
  tqDebug("vgId:%d create msg to start wal scan to launch stream tasks, numOfTasks:%d, vnd restored:%d", vgId,
22,982✔
183
          numOfTasks, alreadyRestored);
184

185
  int32_t code = streamTaskSchedTask(&pTq->pVnode->msgCb, vgId, 0, 0, STREAM_EXEC_T_EXTRACT_WAL_DATA);
22,984✔
186
  streamMetaWUnLock(pMeta);
22,995✔
187

188
  return code;
23,008✔
189
}
190

191
int32_t tqStopStreamTasksAsync(STQ* pTq) {
987✔
192
  SStreamMeta* pMeta = pTq->pStreamMeta;
987✔
193
  int32_t      vgId = pMeta->vgId;
987✔
194
  return streamTaskSchedTask(&pTq->pVnode->msgCb, vgId, 0, 0, STREAM_EXEC_T_STOP_ALL_TASKS);
987✔
195
}
196

197
int32_t setWalReaderStartOffset(SStreamTask* pTask, int32_t vgId) {
48,056✔
198
  // seek the stored version and extract data from WAL
199
  int64_t firstVer = walReaderGetValidFirstVer(pTask->exec.pWalReader);
48,056✔
200
  if (pTask->chkInfo.nextProcessVer < firstVer) {
48,035!
UNCOV
201
    tqWarn("vgId:%d s-task:%s ver:%" PRId64 " earlier than the first ver of wal range %" PRId64 ", forward to %" PRId64,
×
202
           vgId, pTask->id.idStr, pTask->chkInfo.nextProcessVer, firstVer, firstVer);
203

UNCOV
204
    pTask->chkInfo.nextProcessVer = firstVer;
×
205

206
    // todo need retry if failed
UNCOV
207
    int32_t code = walReaderSeekVer(pTask->exec.pWalReader, pTask->chkInfo.nextProcessVer);
×
UNCOV
208
    if (code != TSDB_CODE_SUCCESS) {
×
209
      return code;
×
210
    }
211

212
    // append the data for the stream
UNCOV
213
    tqDebug("vgId:%d s-task:%s wal reader seek to ver:%" PRId64, vgId, pTask->id.idStr, pTask->chkInfo.nextProcessVer);
×
214
  } else {
215
    int64_t currentVer = walReaderGetCurrentVer(pTask->exec.pWalReader);
48,035✔
216
    if (currentVer == -1) {  // we only seek the read for the first time
48,015✔
217
      int32_t code = walReaderSeekVer(pTask->exec.pWalReader, pTask->chkInfo.nextProcessVer);
2,469✔
218
      if (code != TSDB_CODE_SUCCESS) {  // no data in wal, quit
2,468!
219
        return code;
×
220
      }
221

222
      // append the data for the stream
223
      tqDebug("vgId:%d s-task:%s wal reader initial seek to ver:%" PRId64, vgId, pTask->id.idStr,
2,468✔
224
              pTask->chkInfo.nextProcessVer);
225
    }
226
  }
227

228
  int64_t skipToVer = walReaderGetSkipToVersion(pTask->exec.pWalReader);
48,014✔
229
  if (skipToVer != 0 && skipToVer > pTask->chkInfo.nextProcessVer) {
48,002✔
230
    int32_t code = walReaderSeekVer(pTask->exec.pWalReader, skipToVer);
1✔
231
    if (code != TSDB_CODE_SUCCESS) {  // no data in wal, quit
1!
232
      return code;
×
233
    }
234

235
    tqDebug("vgId:%d s-task:%s wal reader jump to ver:%" PRId64, vgId, pTask->id.idStr, skipToVer);
1!
236
  }
237

238
  return TSDB_CODE_SUCCESS;
47,995✔
239
}
240

241
// todo handle memory error
242
bool handleFillhistoryScanComplete(SStreamTask* pTask, int64_t ver) {
140,251✔
243
  const char* id = pTask->id.idStr;
140,251✔
244
  int64_t     maxVer = pTask->step2Range.maxVer;
140,251✔
245

246
  if ((pTask->info.fillHistory == 1) && ver > maxVer) {
140,251✔
247
    if (!pTask->status.appendTranstateBlock) {
512!
248
      qWarn("s-task:%s fill-history scan WAL, nextProcessVer:%" PRId64 " out of the maximum ver:%" PRId64
512!
249
            ", not scan wal anymore, add transfer-state block into inputQ",
250
            id, ver, maxVer);
251

252
      double el = (taosGetTimestampMs() - pTask->execInfo.step2Start) / 1000.0;
512✔
253
      qDebug("s-task:%s scan-history from WAL stage(step 2) ended, range:%" PRId64 "-%" PRId64 ", elapsed time:%.2fs",
512✔
254
             id, pTask->step2Range.minVer, maxVer, el);
255
      int32_t code = streamTaskPutTranstateIntoInputQ(pTask);
512✔
256
      if (code) {
512!
257
        qError("s-task:%s failed to put trans-state into inputQ", id);
×
258
      }
259

260
      return true;
512✔
261
    } else {
262
      qWarn("s-task:%s fill-history scan WAL, nextProcessVer:%" PRId64 " out of the ver range:%" PRId64 "-%" PRId64
×
263
            ", not scan wal",
264
            id, ver, pTask->step2Range.minVer, maxVer);
265
    }
266
  }
267

268
  return false;
139,729✔
269
}
270

271
bool taskReadyForDataFromWal(SStreamTask* pTask) {
146,897✔
272
  // non-source or fill-history tasks don't need to response the WAL scan action.
273
  if ((pTask->info.taskLevel != TASK_LEVEL__SOURCE) || (pTask->status.downstreamReady == 0)) {
146,897✔
274
    return false;
76,644✔
275
  }
276

277
  // not in ready state, do not handle the data from wal
278
  SStreamTaskState pState = streamTaskGetStatus(pTask);
70,253✔
279
  if (pState.state != TASK_STATUS__READY) {
70,208✔
280
    tqTrace("s-task:%s not ready for submit block in wal, status:%s", pTask->id.idStr, pState.name);
16,916!
281
    return false;
16,917✔
282
  }
283

284
  // fill-history task has entered into the last phase, no need to anything
285
  if ((pTask->info.fillHistory == 1) && pTask->status.appendTranstateBlock) {
53,292✔
286
    // the maximum version of data in the WAL has reached already, the step2 is done
287
    tqDebug("s-task:%s fill-history reach the maximum ver:%" PRId64 ", not scan wal anymore", pTask->id.idStr,
5,283✔
288
            pTask->dataRange.range.maxVer);
289
    return false;
5,283✔
290
  }
291

292
  // check if input queue is full or not
293
  if (streamQueueIsFull(pTask->inputq.queue)) {
48,009!
UNCOV
294
    tqTrace("s-task:%s input queue is full, do nothing", pTask->id.idStr);
×
UNCOV
295
    return false;
×
296
  }
297

298
  // the input queue of downstream task is full, so the output is blocked, stopped for a while
299
  if (pTask->inputq.status == TASK_INPUT_STATUS__BLOCKED) {
48,079!
UNCOV
300
    tqDebug("s-task:%s inputQ is blocked, do nothing", pTask->id.idStr);
×
UNCOV
301
    return false;
×
302
  }
303

304
  return true;
48,079✔
305
}
306

307
int32_t doPutDataIntoInputQ(SStreamTask* pTask, int64_t maxVer, int32_t* numOfItems, bool* pSucc) {
48,043✔
308
  const char* id = pTask->id.idStr;
48,043✔
309
  int32_t     numOfNewItems = 0;
48,043✔
310
  int32_t     code = 0;
48,043✔
311
  *pSucc = false;
48,043✔
312

313
  while (1) {
92,268✔
314
    if ((pTask->info.fillHistory == 1) && pTask->status.appendTranstateBlock) {
140,311!
UNCOV
315
      *numOfItems += numOfNewItems;
×
UNCOV
316
      return numOfNewItems > 0;
×
317
    }
318

319
    SStreamQueueItem* pItem = NULL;
140,311✔
320
    code = extractMsgFromWal(pTask->exec.pWalReader, (void**)&pItem, maxVer, id);
140,311✔
321
    if (code != TSDB_CODE_SUCCESS || pItem == NULL) {  // failed, continue
140,247✔
322
      int64_t currentVer = walReaderGetCurrentVer(pTask->exec.pWalReader);
47,921✔
323
      bool    itemInFillhistory = handleFillhistoryScanComplete(pTask, currentVer);
47,933✔
324
      if (itemInFillhistory) {
47,921✔
325
        numOfNewItems += 1;
448✔
326
      }
327
      break;
47,921✔
328
    }
329

330
    if (pItem != NULL) {
92,326!
331
      code = streamTaskPutDataIntoInputQ(pTask, pItem);
92,327✔
332
      if (code == TSDB_CODE_SUCCESS) {
92,358!
333
        numOfNewItems += 1;
92,358✔
334
        int64_t ver = walReaderGetCurrentVer(pTask->exec.pWalReader);
92,358✔
335
        pTask->chkInfo.nextProcessVer = ver;
92,339✔
336
        tqDebug("s-task:%s set ver:%" PRId64 " for reader after extract data from WAL", id, ver);
92,339✔
337

338
        bool itemInFillhistory = handleFillhistoryScanComplete(pTask, ver);
92,339✔
339
        if (itemInFillhistory) {
92,333✔
340
          break;
64✔
341
        }
342
      } else {
UNCOV
343
        if (code == TSDB_CODE_OUT_OF_MEMORY) {
×
UNCOV
344
          tqError("s-task:%s failed to put data into inputQ, since out of memory", id);
×
345
        } else {
UNCOV
346
          tqTrace("s-task:%s append input queue failed, code:inputQ is full, ver:%" PRId64, id,
×
347
                  pTask->chkInfo.nextProcessVer);
UNCOV
348
          code = walReaderSeekVer(pTask->exec.pWalReader, pTask->chkInfo.nextProcessVer);
×
349
          if (code) {
×
UNCOV
350
            tqError("s-task:%s failed to seek ver to:%" PRId64 " in wal", id, pTask->chkInfo.nextProcessVer);
×
351
          }
352

UNCOV
353
          code = 0;  // reset the error code
×
354
        }
355

UNCOV
356
        break;
×
357
      }
358
    }
359
  }
360

361
  *numOfItems += numOfNewItems;
47,985✔
362
  *pSucc = (numOfNewItems > 0);
47,985✔
363
  return code;
47,985✔
364
}
365

366
int32_t doScanWalForAllTasks(SStreamMeta* pStreamMeta, bool* pScanIdle) {
32,355✔
367
  *pScanIdle = true;
32,355✔
368
  bool    noDataInWal = true;
32,355✔
369
  int32_t vgId = pStreamMeta->vgId;
32,355✔
370

371
  int32_t numOfTasks = taosArrayGetSize(pStreamMeta->pTaskList);
32,355✔
372
  if (numOfTasks == 0) {
32,356✔
373
    return TSDB_CODE_SUCCESS;
535✔
374
  }
375

376
  // clone the task list, to avoid the task update during scan wal files
377
  SArray* pTaskList = NULL;
31,821✔
378
  streamMetaWLock(pStreamMeta);
31,821✔
379
  pTaskList = taosArrayDup(pStreamMeta->pTaskList, NULL);
31,823✔
380
  streamMetaWUnLock(pStreamMeta);
31,816✔
381
  if (pTaskList == NULL) {
31,813!
UNCOV
382
    tqError("vgId:%d failed to create task list dup, code:%s", vgId, tstrerror(terrno));
×
UNCOV
383
    return terrno;
×
384
  }
385

386
  tqDebug("vgId:%d start to check wal to extract new submit block for %d tasks", vgId, numOfTasks);
31,813✔
387

388
  // update the new task number
389
  numOfTasks = taosArrayGetSize(pTaskList);
31,813✔
390

391
  for (int32_t i = 0; i < numOfTasks; ++i) {
179,040✔
392
    STaskId* pTaskId = taosArrayGet(pTaskList, i);
147,200✔
393
    if (pTaskId == NULL) {
147,151!
394
      continue;
99,157✔
395
    }
396

397
    SStreamTask* pTask = NULL;
147,151✔
398
    int32_t      code = streamMetaAcquireTask(pStreamMeta, pTaskId->streamId, pTaskId->taskId, &pTask);
147,151✔
399
    if (pTask == NULL || code != 0) {
147,122!
400
      continue;
191✔
401
    }
402

403
    if (!taskReadyForDataFromWal(pTask)) {
146,931✔
404
      streamMetaReleaseTask(pStreamMeta, pTask);
98,820✔
405
      continue;
98,988✔
406
    }
407

408
    *pScanIdle = false;
48,042✔
409

410
    // seek the stored version and extract data from WAL
411
    code = setWalReaderStartOffset(pTask, vgId);
48,042✔
412
    if (code != TSDB_CODE_SUCCESS) {
47,998!
UNCOV
413
      streamMetaReleaseTask(pStreamMeta, pTask);
×
UNCOV
414
      continue;
×
415
    }
416

417
    int32_t numOfItems = streamQueueGetNumOfItems(pTask->inputq.queue);
47,998✔
418
    int64_t maxVer = (pTask->info.fillHistory == 1) ? pTask->step2Range.maxVer : INT64_MAX;
48,065✔
419

420
    streamMutexLock(&pTask->lock);
48,065✔
421

422
    SStreamTaskState pState = streamTaskGetStatus(pTask);
48,056✔
423
    if (pState.state != TASK_STATUS__READY) {
48,050✔
424
      tqDebug("s-task:%s not ready for submit block from wal, status:%s", pTask->id.idStr, pState.name);
6!
425
      streamMutexUnlock(&pTask->lock);
6✔
426
      streamMetaReleaseTask(pStreamMeta, pTask);
6✔
UNCOV
427
      continue;
×
428
    }
429

430
    bool hasNewData = false;
48,044✔
431
    code = doPutDataIntoInputQ(pTask, maxVer, &numOfItems, &hasNewData);
48,044✔
432
    streamMutexUnlock(&pTask->lock);
47,989✔
433

434
    if ((numOfItems > 0) || hasNewData) {
48,054!
435
      noDataInWal = false;
16,558✔
436
      code = streamTrySchedExec(pTask);
16,558✔
437
      if (code != TSDB_CODE_SUCCESS) {
16,561!
UNCOV
438
        streamMetaReleaseTask(pStreamMeta, pTask);
×
UNCOV
439
        taosArrayDestroy(pTaskList);
×
UNCOV
440
        return code;
×
441
      }
442
    }
443

444
    streamMetaReleaseTask(pStreamMeta, pTask);
48,057✔
445
  }
446

447
  // all wal are checked, and no new data available in wal.
448
  if (noDataInWal) {
31,840✔
449
    *pScanIdle = true;
23,525✔
450
  }
451

452
  taosArrayDestroy(pTaskList);
31,840✔
453
  return TSDB_CODE_SUCCESS;
31,814✔
454
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc