add debug info

This commit is contained in:
Yihao Deng 2024-08-29 09:54:28 +00:00
parent e39342ee63
commit 79688e32a3
1 changed files with 5 additions and 0 deletions

View File

@ -310,6 +310,7 @@ void tFreeStreamTask(SStreamTask* pTask) {
}
void streamFreeTaskState(SStreamTask* pTask, int8_t remove) {
stDebug("s-task:0x%x start to free task state/backend", pTask->id.taskId);
if (pTask->pState != NULL) {
stDebug("s-task:0x%x start to free task state", pTask->id.taskId);
streamStateClose(pTask->pState, remove);
@ -319,8 +320,11 @@ void streamFreeTaskState(SStreamTask* pTask, int8_t remove) {
pTask->pBackend = NULL;
pTask->pState = NULL;
} else {
stDebug("s-task:0x%x task state is NULL, may del backend:%s", pTask->id.taskId,
pTask->backendPath ? pTask->backendPath : "NULL");
if (remove) {
if (pTask->backendPath != NULL) {
stDebug("s-task:0x%x task state is NULL, do del backend:%s", pTask->id.taskId, pTask->backendPath);
taosRemoveDir(pTask->backendPath);
}
}
@ -393,6 +397,7 @@ int32_t streamTaskSetBackendPath(SStreamTask* pTask) {
}
(void)sprintf(pTask->backendPath, "%s%s%s", pTask->pMeta->path, TD_DIRSEP, id);
stDebug("s-task:%s set backend path:%s", pTask->id.idStr, pTask->backendPath);
return 0;
}