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

taosdata / TDengine / #5051

13 May 2026 12:00PM UTC coverage: 73.358% (-0.04%) from 73.398%
#5051

push

travis-ci

web-flow
feat: taosdump support stream backup/restore (#35326)

139 of 170 new or added lines in 3 files covered. (81.76%)

714 existing lines in 146 files now uncovered.

281543 of 383795 relevant lines covered (73.36%)

135448694.71 hits per line

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

77.87
/source/dnode/snode/src/snode.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 "executor.h"
17
#include "sndInt.h"
18
#include "stream.h"
19
#include "streamRunner.h"
20
#include "tdatablock.h"
21
#include "tuuid.h"
22

23
// clang-format off
24
#define sndError(...) do {  if (sndDebugFlag & DEBUG_ERROR) { taosPrintLog("SND ERROR ", DEBUG_ERROR, sndDebugFlag, __VA_ARGS__);}} while (0)
25
#define sndInfo(...)  do {  if (sndDebugFlag & DEBUG_INFO)  { taosPrintLog("SND INFO  ", DEBUG_INFO,  sndDebugFlag, __VA_ARGS__);}} while (0)
26
#define sndDebug(...) do {  if (sndDebugFlag & DEBUG_DEBUG) { taosPrintLog("SND DEBUG ", DEBUG_DEBUG, sndDebugFlag, __VA_ARGS__);}} while (0)
27

28
SSnode *sndOpen(const char *path, const SSnodeOpt *pOption) {
92,331✔
29
  int32_t code = 0;
92,331✔
30
  SSnode *pSnode = taosMemoryCalloc(1, sizeof(SSnode));
92,331✔
31
  if (pSnode == NULL) {
92,331✔
32
    return NULL;
×
33
  }
34

35
  pSnode->msgCb = pOption->msgCb;
92,331✔
36

37
  return pSnode;
92,331✔
38
}
39

40
int32_t sndInit(SSnode *pSnode) {
92,331✔
41
  streamSetSnodeEnabled(&pSnode->msgCb);
92,331✔
42
  return 0;
92,331✔
43
}
44

45
void sndClose(SSnode *pSnode) {
92,331✔
46
  streamSetSnodeDisabled(false);
92,331✔
47
  taosMemoryFree(pSnode);
92,331✔
48
}
92,331✔
49

50
static int32_t handleTriggerCalcReq(SSnode* pSnode, void* pWorkerCb, SRpcMsg* pRpcMsg) {
3,105,518✔
51
  SSTriggerCalcRequest req = {0};
3,105,518✔
52
  SStreamRunnerTask* pTask = NULL;
3,105,518✔
53
  void* taskAddr = NULL;
3,105,247✔
54
  int32_t code = 0, lino = 0;
3,105,247✔
55
  TAOS_CHECK_EXIT(tDeserializeSTriggerCalcRequest(POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead)), pRpcMsg->contLen - sizeof(SMsgHead), &req));
3,105,247✔
56
  TAOS_CHECK_EXIT(streamAcquireTask(req.streamId, req.runnerTaskId, (SStreamTask**)&pTask, &taskAddr));
3,105,236✔
57

58
  req.brandNew = true;
3,105,518✔
59
  req.execId = -1;
3,105,518✔
60
  pTask->msgCb = pSnode->msgCb;
3,105,518✔
61
  //pTask->pMsgCb = &pSnode->msgCb;
62
  pTask->pWorkerCb = pWorkerCb;
3,105,518✔
63
  req.curWinIdx = 0;
3,105,247✔
64
  TAOS_CHECK_EXIT(stRunnerTaskExecute(pTask, &req));
3,105,247✔
65

66
_exit:
3,105,518✔
67

68
  tDestroySTriggerCalcRequest(&req);
3,105,518✔
69
  SRpcMsg rsp = {.code = code, .msgType = TDMT_STREAM_TRIGGER_CALC_RSP, .contLen = 0, .pCont = NULL, .info = pRpcMsg->info};
3,105,518✔
70
  if (rpcSendResponse(&rsp) != 0) {
3,104,976✔
71
    sndError("failed to send response, msg:%p", &rsp);
×
72
  }
73
  
74
  streamReleaseTask(taskAddr);
3,104,976✔
75

76
  if(code == TSDB_CODE_MND_STREAM_TABLE_NOT_CREATE) {
3,105,518✔
77
    code = 0; // not real error, just notify trigger the table is not created
×
78
  }
79

80
  if (code) {
3,105,518✔
81
    sndError("%s failed at line %d, error:%s", __FUNCTION__, lino, tstrerror(code));
1,747,565✔
82
  }
83
  
84
  return code;
3,105,518✔
85
}
86

87
static int32_t handleSyncDeleteCheckPointReq(SSnode* pSnode, SRpcMsg* pRpcMsg) {
2,633✔
88
  int64_t streamId = *(int64_t*)POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead));
2,633✔
89
  streamDeleteCheckPoint(streamId);
2,633✔
90
  return 0;
2,633✔
91
}
92

93
static int32_t handleSyncWriteCheckPointReq(SSnode* pSnode, SRpcMsg* pRpcMsg) {
9,125✔
94
  int32_t ver = *(int32_t*)POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead) + INT_BYTES);
9,125✔
95
  int64_t streamId = *(int64_t*)POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead) + 2 * INT_BYTES);
9,125✔
96
  SRpcMsg rsp = {.code = 0, .msgType = TDMT_STREAM_SYNC_CHECKPOINT_RSP, .info = pRpcMsg->info};
9,125✔
97

98
  stDebug("[checkpoint] handleSyncWriteCheckPointReq streamId:%" PRIx64 ",ver:%d", streamId, ver);
9,125✔
99
  void*   data = NULL;
9,125✔
100
  int64_t dataLen = 0;
9,125✔
101
  int32_t code = streamReadCheckPoint(streamId, &data, &dataLen);
9,125✔
102
  if (code != 0 || (errorIsFileNotExist(terrno) && ver == -1)) {
9,125✔
103
    goto end;
4,316✔
104
  }
105
  if (errorIsFileNotExist(terrno) || ver > *(int32_t*)POINTER_SHIFT(data, INT_BYTES)) {
4,809✔
106
    int32_t ret = streamWriteCheckPoint(streamId, POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead)), pRpcMsg->contLen - sizeof(SMsgHead));
3,129✔
107
    stDebug("[checkpoint] streamId:%" PRIx64 ", checkpoint local updated, ver:%d, dataLen:%" PRId64 ", ret:%d", streamId, ver, dataLen, ret);
3,129✔
108
  }
109
  if (errorIsFileNotExist(terrno) || ver >= *(int32_t*)POINTER_SHIFT(data, INT_BYTES)) {
4,809✔
110
    stDebug("[checkpoint] streamId:%" PRIx64 ", checkpoint no need send back, ver:%d, dataLen:%" PRId64, streamId, ver, dataLen);
4,809✔
111
    dataLen = 0;
4,809✔
112
    taosMemoryFreeClear(data);
4,809✔
113
  }
114
  
115
end:
9,125✔
116
  if (data == NULL) {
9,125✔
117
    rsp.contLen = 2 * INT_BYTES + LONG_BYTES;
9,125✔
118
    rsp.pCont = rpcMallocCont(rsp.contLen);
9,125✔
119
    if (rsp.pCont == NULL) {
9,125✔
120
      rsp.code = TSDB_CODE_OUT_OF_MEMORY;
×
121
    } else {
122
      *(int32_t*)(POINTER_SHIFT(rsp.pCont, INT_BYTES)) = -1;  // no checkpoint
9,125✔
123
      *(int64_t*)(POINTER_SHIFT(rsp.pCont, 2 * INT_BYTES)) = streamId;
9,125✔
124
    }
125
  } else {
126
    rsp.pCont = rpcMallocCont(dataLen);
×
127
    if (rsp.pCont == NULL) {
×
128
      rsp.code = TSDB_CODE_OUT_OF_MEMORY;
×
129
    } else {
130
      memcpy(rsp.pCont, data, dataLen);
×
131
      rsp.contLen = dataLen;
×
132
      taosMemoryFreeClear(data); 
×
133
    } 
134
  }
135
  
136
  if (rpcSendResponse(&rsp) != 0) {
9,125✔
137
    sndError("failed to send write checkpoint response, msg:%p", &rsp);
×
138
  }
139

140
  return 0;
9,125✔
141
}
142

143
static int32_t handleSyncWriteCheckPointRsp(SSnode* pSnode, SRpcMsg* pRpcMsg) {
9,102✔
144
  if (pRpcMsg->code != 0) {
9,102✔
145
    stError("[checkpoint] handleSyncWriteCheckPointRsp, code:%d, msgType:%d", pRpcMsg->code, pRpcMsg->msgType);
×
146
    return pRpcMsg->code;
×
147
  } 
148
  void* data = pRpcMsg->pCont;
9,102✔
149
  int32_t dataLen = pRpcMsg->contLen;
9,102✔
150
  
151
  int32_t ver = *(int32_t*)(POINTER_SHIFT(data, INT_BYTES));
9,102✔
152
  int64_t streamId = *(int64_t*)(POINTER_SHIFT(data, 2 * INT_BYTES));
9,102✔
153
  stDebug("[checkpoint] handleSyncWriteCheckPointRsp, ver:%d, streamId:%"PRIx64",dataLen:%d", 
9,102✔
154
    ver, streamId, dataLen);
155

156
  if (ver != -1){
9,102✔
157
    (void)streamWriteCheckPoint(streamId, data, dataLen);
×
158
  }
159
  return streamCheckpointSetReady(streamId);
9,102✔
160
}
161

162
static int32_t buildStreamFetchRsp(SSDataBlock* pBlock, void** data, size_t* size, int8_t precision, bool finished) {
8,404,961✔
163
  int32_t code = 0;
8,404,961✔
164
  int32_t lino = 0;
8,404,961✔
165
  void*   buf =  NULL;
8,404,961✔
166

167
  int32_t blockSize = pBlock == NULL ? 0 : blockGetInternalEncodeSize(pBlock);
8,404,961✔
168
  size_t dataEncodeBufSize = sizeof(SRetrieveTableRsp) + INT_BYTES * 2 + blockSize;
8,404,961✔
169
  buf = rpcMallocCont(dataEncodeBufSize);
8,404,961✔
170
  if (!buf) {
8,404,961✔
171
    code = terrno;
×
172
    goto end;
×
173
  }
174

175
  SRetrieveTableRsp* pRetrieve = (SRetrieveTableRsp*)buf;
8,404,961✔
176
  pRetrieve->version = 0;
8,404,961✔
177
  pRetrieve->precision = precision;
8,404,961✔
178
  pRetrieve->compressed = 0;
8,404,961✔
179
  *((int32_t*)(pRetrieve->data)) = blockSize;
8,404,961✔
180
  *((int32_t*)(pRetrieve->data + INT_BYTES)) = blockSize;
8,404,961✔
181
  if (pBlock == NULL || pBlock->info.rows == 0) {
8,404,961✔
182
    pRetrieve->numOfRows = 0;
3,699,000✔
183
    pRetrieve->numOfBlocks = 0;
3,699,000✔
184
    pRetrieve->completed = 1;
3,699,000✔
185
  } else {
186
    pRetrieve->numOfRows = htobe64((int64_t)pBlock->info.rows);
4,705,961✔
187
    pRetrieve->numOfBlocks = htonl(1);
4,705,961✔
188

189
    uint32_t numOfCols = (uint32_t)taosArrayGetSize(pBlock->pDataBlock);
4,705,961✔
190
    pRetrieve->numOfCols = htonl(numOfCols);
4,705,961✔
191

192
    int32_t actualLen = blockEncodeInternal(pBlock, pRetrieve->data + INT_BYTES * 2, blockSize, numOfCols);
4,705,961✔
193
    if (actualLen < 0) {
4,705,961✔
194
      code = terrno;
×
195
      goto end;
×
196
    }
197
  }
198
  if (finished) {
8,404,961✔
199
    pRetrieve->completed = 1;
3,670,904✔
200
  }
201

202
  *data = buf;
8,404,961✔
203
  *size = dataEncodeBufSize;
8,404,961✔
204
  buf = NULL;
8,403,835✔
205

206
end:
8,403,835✔
207
  rpcFreeCont(buf);
8,403,835✔
208
  return code;
8,404,663✔
209
}
210

211
static int32_t handleStreamFetchData(SSnode* pSnode, void *pWorkerCb, SRpcMsg* pRpcMsg) {
2,928,997✔
212
  int32_t code = 0, lino = 0;
2,928,997✔
213
  void* taskAddr = NULL;
2,928,997✔
214
  SResFetchReq req = {0};
2,928,997✔
215
  SSTriggerCalcRequest calcReq = {0};
2,928,997✔
216
  SStreamRunnerTask* pTask = NULL;
2,928,997✔
217
  void* buf = NULL;
2,928,997✔
218
  size_t size = 0;
2,928,997✔
219

220
  stDebug("handleStreamFetchData, msgType:%s, contLen:%d 0x%" PRIx64 ":0x%" PRIx64, 
2,928,997✔
221
      TMSG_INFO(pRpcMsg->msgType), pRpcMsg->contLen, TRACE_GET_ROOTID(&pRpcMsg->info.traceId), TRACE_GET_MSGID(&pRpcMsg->info.traceId));
222
  
223
  TAOS_CHECK_EXIT(tDeserializeSResFetchReq(pRpcMsg->pCont,pRpcMsg->contLen, &req));
2,928,997✔
224

225
  calcReq.streamId = req.queryId;
2,928,997✔
226
  calcReq.runnerTaskId = req.taskId;
2,928,997✔
227
  calcReq.brandNew = req.reset;
2,928,997✔
228
  calcReq.execId = req.execId;
2,928,997✔
229
  if (req.pStRtFuncInfo) {
2,928,997✔
230
    calcReq.sessionId = req.pStRtFuncInfo->sessionId;
2,928,997✔
231
    calcReq.triggerType = req.pStRtFuncInfo->triggerType;
2,928,997✔
232
    calcReq.isWindowTrigger = req.pStRtFuncInfo->isWindowTrigger;
2,928,997✔
233
    calcReq.precision = req.pStRtFuncInfo->precision;
2,928,997✔
234
    calcReq.isMultiGroupCalc = req.pStRtFuncInfo->isMultiGroupCalc;
2,928,997✔
235
    calcReq.stbPartByTbname = req.pStRtFuncInfo->stbPartByTbname;
2,928,997✔
236
    if (calcReq.isMultiGroupCalc) {
2,928,997✔
237
      TSWAP(calcReq.pGroupCalcInfos, req.pStRtFuncInfo->pGroupCalcInfos);
×
238
      TSWAP(calcReq.pGroupReadInfos, req.pStRtFuncInfo->pGroupReadInfos);
×
239
    } else {
240
      TSWAP(calcReq.groupColVals, req.pStRtFuncInfo->pStreamPartColVals);
2,928,997✔
241
      TSWAP(calcReq.params, req.pStRtFuncInfo->pStreamPesudoFuncVals);
2,928,997✔
242
      calcReq.gid = req.pStRtFuncInfo->groupId;
2,928,997✔
243
    }
244
    calcReq.curWinIdx = req.pStRtFuncInfo->curIdx;
2,928,997✔
245
  }
246
  calcReq.pOutBlock = NULL;
2,928,997✔
247

248
  TAOS_CHECK_EXIT(streamAcquireTask(calcReq.streamId, calcReq.runnerTaskId, (SStreamTask**)&pTask, &taskAddr));
2,928,997✔
249

250
  pTask->msgCb = pSnode->msgCb;
2,928,997✔
251
  //pTask->pMsgCb = &pSnode->msgCb;
252
  pTask->pWorkerCb = pWorkerCb;
2,928,997✔
253
  
254
  TAOS_CHECK_EXIT(stRunnerTaskExecute(pTask, &calcReq));
2,928,699✔
255

256
  TAOS_CHECK_EXIT(buildStreamFetchRsp(calcReq.pOutBlock, &buf, &size, 0, false));
2,928,997✔
257

258
_exit:
2,928,699✔
259

260
  tDestroySTriggerCalcRequest(&calcReq);
2,928,699✔
261
  tDestroySResFetchReq(&req);
2,928,699✔
262
  SRpcMsg rsp = {.code = code, .msgType = TDMT_STREAM_FETCH_FROM_RUNNER_RSP, .contLen = size, .pCont = buf, .info = pRpcMsg->info};
2,928,699✔
263
  tmsgSendRsp(&rsp);
2,928,699✔
264
  
265
  streamReleaseTask(taskAddr);
2,928,997✔
266

267
  if (code) {
2,928,997✔
268
    sndError("%s failed at line %d, error:%s", __FUNCTION__, lino, tstrerror(code));
×
269
  }
270
  
271
  return code;
2,928,997✔
272
}
273

274
static int32_t handleStreamFetchFromCache(SSnode* pSnode, SRpcMsg* pRpcMsg) {
5,475,964✔
275
  int32_t code = 0, lino = 0;
5,475,964✔
276
  SResFetchReq req = {0};
5,475,964✔
277
  SStreamCacheReadInfo readInfo = {0};
5,475,964✔
278
  void* buf = NULL;
5,475,964✔
279
  int64_t streamId = 0;
5,475,964✔
280
  size_t size = 0;
5,475,964✔
281
  TAOS_CHECK_EXIT(tDeserializeSResFetchReq(pRpcMsg->pCont, pRpcMsg->contLen, &req));
5,475,964✔
282

283
  streamId = req.queryId;
5,475,136✔
284
  readInfo.taskInfo.streamId = req.queryId;
5,475,136✔
285
  readInfo.taskInfo.taskId = req.taskId;
5,475,136✔
286
  readInfo.taskInfo.sessionId = req.pStRtFuncInfo->sessionId;
5,475,136✔
287
  readInfo.gid = req.pStRtFuncInfo->groupId;
5,475,136✔
288
  //SSTriggerCalcParam* pParam = taosArrayGet(req.pStRtFuncInfo->pStreamPesudoFuncVals, req.pStRtFuncInfo->curIdx);
289
  readInfo.start = req.pStRtFuncInfo->curWindow.skey;
5,475,136✔
290
  readInfo.end = req.pStRtFuncInfo->curWindow.ekey;
5,475,136✔
291
  bool finished;
5,474,242✔
292
  TAOS_CHECK_EXIT(stRunnerFetchDataFromCache(&readInfo,&finished));
5,475,682✔
293

294
  TAOS_CHECK_EXIT(buildStreamFetchRsp(readInfo.pBlock, &buf, &size, 0, finished));
5,475,964✔
295

296
_exit:
5,475,964✔
297

298
  printDataBlock(readInfo.pBlock, __func__, "fetchFromCache", streamId);
5,475,964✔
299

300
  stsDebug("task %" PRIx64 " TDMT_STREAM_FETCH_FROM_CACHE_RSP with code:%d rows:%" PRId64 ", size:%d, time range:[%" PRId64 ", %" PRId64 "]", 
5,475,684✔
301
      req.taskId, code, readInfo.pBlock ? readInfo.pBlock->info.rows : 0, (int32_t)size, readInfo.start, readInfo.end);  
302
      
303
  SRpcMsg rsp = {.code = code, .msgType = TDMT_STREAM_FETCH_FROM_CACHE_RSP, .contLen = size, .pCont = buf, .info = pRpcMsg->info};
5,475,684✔
304
  tmsgSendRsp(&rsp);
5,475,405✔
305

306
  if (code) {
5,475,964✔
307
    sndError("%s failed at line %d, error:%s", __FUNCTION__, lino, tstrerror(code));
×
308
  }
309

310
  blockDataDestroy(readInfo.pBlock);
5,475,964✔
311
  tDestroySResFetchReq(&req);
5,475,964✔
312
  
313
  return code;
5,475,964✔
314
}
315

316
static void sndSendErrorRrsp(SRpcMsg *pMsg, int32_t errCode) {
×
317
  SRpcMsg             rspMsg = {0};
×
318

319
  rspMsg.info = pMsg->info;
×
320
  rspMsg.pCont = NULL;
×
321
  rspMsg.contLen = 0;
×
322
  rspMsg.code = errCode;
×
323
  rspMsg.msgType = pMsg->msgType;
×
324

325
  tmsgSendRsp(&rspMsg);
×
326
}
×
327

328
static int32_t handleStreamDropTableReq(SSnode* pSnode, SRpcMsg* pRpcMsg) {
×
329
  SSTriggerDropRequest req = {0};
×
330
  SStreamRunnerTask* pTask = NULL;
×
331
  void* taskAddr = NULL;
×
332
  int32_t code = 0, lino = 0;
×
333
  TAOS_CHECK_EXIT(tDeserializeSTriggerDropTableRequest(POINTER_SHIFT(pRpcMsg->pCont, sizeof(SMsgHead)), pRpcMsg->contLen - sizeof(SMsgHead), &req));
×
334
  TAOS_CHECK_EXIT(streamAcquireTask(req.streamId, req.runnerTaskId, (SStreamTask**)&pTask, &taskAddr));
×
335
  
336
  pTask->msgCb = pSnode->msgCb;
×
337
  TAOS_CHECK_EXIT(stRunnerTaskDropTable(pTask, &req));
×
338

339
_exit:
×
340
  tDestroySSTriggerDropRequest(&req);
×
341
  if (code) {
×
342
    sndError("%s failed at line %d, error:%s", __FUNCTION__, lino, tstrerror(code));
×
343
    sndSendErrorRrsp(pRpcMsg, code);
×
344
  } else {
345
    SRpcMsg rsp = {.code = 0, .msgType = TDMT_STREAM_TRIGGER_DROP_RSP, .contLen = 0, .pCont = NULL, .info = pRpcMsg->info};
×
346
    tmsgSendRsp(&rsp);
×
347
  }
348
  streamReleaseTask(taskAddr);
×
349

350
  return code;
×
351
}
352

353

354
int32_t sndProcessStreamMsg(SSnode *pSnode, void *pWorkerCb, SRpcMsg *pMsg) {
11,530,444✔
355
  int32_t code = 0, lino = 0;
11,530,444✔
356
  switch (pMsg->msgType) {
11,530,444✔
357
    case TDMT_STREAM_TRIGGER_CALC:
3,105,518✔
358
      TAOS_CHECK_EXIT(handleTriggerCalcReq(pSnode, pWorkerCb, pMsg));
3,105,518✔
359
      break;
1,357,953✔
360
    case TDMT_STREAM_DELETE_CHECKPOINT:
2,633✔
361
      TAOS_CHECK_EXIT(handleSyncDeleteCheckPointReq(pSnode, pMsg));
2,633✔
362
      break;
2,633✔
363
    case TDMT_STREAM_SYNC_CHECKPOINT:
9,125✔
364
      TAOS_CHECK_EXIT(handleSyncWriteCheckPointReq(pSnode, pMsg));
9,125✔
365
      break;
9,125✔
366
    case TDMT_STREAM_SYNC_CHECKPOINT_RSP:
9,102✔
367
      TAOS_CHECK_EXIT(handleSyncWriteCheckPointRsp(pSnode, pMsg));
9,102✔
368
      break;
5,742✔
369
    case TDMT_STREAM_FETCH_FROM_RUNNER:
2,928,997✔
370
      TAOS_CHECK_EXIT(handleStreamFetchData(pSnode, pWorkerCb, pMsg));
2,928,997✔
371
      break;
2,928,699✔
372
    case TDMT_STREAM_FETCH_FROM_CACHE:
5,475,964✔
373
      TAOS_CHECK_EXIT(handleStreamFetchFromCache(pSnode, pMsg));
5,475,964✔
374
      break;
5,475,964✔
375
      case TDMT_STREAM_TRIGGER_DROP:
×
376
     TAOS_CHECK_EXIT(handleStreamDropTableReq(pSnode, pMsg));
×
377
      break;
×
UNCOV
378
    default:
×
UNCOV
379
      sndError("invalid snode msg:%d", pMsg->msgType);
×
380
      TAOS_CHECK_EXIT(TSDB_CODE_INVALID_MSG);
×
381
  }
382

383
_exit:
×
384

385
  if (code) {
11,531,041✔
386
    sndError("%s failed at line %d, error:%s", __FUNCTION__, lino, tstrerror(code));
1,750,925✔
387
  }
388
  
389
  return code;
11,531,041✔
390
}
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