refactor: do some internal refactor.

This commit is contained in:
Haojun Liao 2023-09-27 14:18:01 +08:00
parent 6d2dbd549b
commit d10b07d23d
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ extern "C" {
#define CHECK_DOWNSTREAM_INTERVAL 100 #define CHECK_DOWNSTREAM_INTERVAL 100
#define LAUNCH_HTASK_INTERVAL 100 #define LAUNCH_HTASK_INTERVAL 100
#define WAIT_FOR_MINIMAL_INTERVAL 100.00 #define WAIT_FOR_MINIMAL_INTERVAL 100.00
#define MAX_RETRY_LAUNCH_HISTORY_TASK 20 #define MAX_RETRY_LAUNCH_HISTORY_TASK 40
#define RETRY_LAUNCH_INTERVAL_INC_RATE 1.2 #define RETRY_LAUNCH_INTERVAL_INC_RATE 1.2
#define MAX_BLOCK_NAME_NUM 1024 #define MAX_BLOCK_NAME_NUM 1024

View File

@ -693,8 +693,7 @@ static void tryLaunchHistoryTask(void* param, void* tmrId) {
const char* p = streamGetTaskStatusStr(pTask->status.taskStatus); const char* p = streamGetTaskStatusStr(pTask->status.taskStatus);
int32_t hTaskId = pHTaskInfo->id.taskId; int32_t hTaskId = pHTaskInfo->id.taskId;
stDebug( stDebug(
"s-task:%s status:%s failed to launch fill-history task:0x%x, retry launch related fill-history task in " "s-task:%s status:%s failed to launch fill-history task:0x%x, retry launch %dms, retryCount:%d",
"%dms, retryCount:%d",
pTask->id.idStr, p, hTaskId, pHTaskInfo->waitInterval, pHTaskInfo->retryTimes); pTask->id.idStr, p, hTaskId, pHTaskInfo->waitInterval, pHTaskInfo->retryTimes);
taosTmrReset(tryLaunchHistoryTask, LAUNCH_HTASK_INTERVAL, pInfo, streamEnv.timer, &pHTaskInfo->pTimer); taosTmrReset(tryLaunchHistoryTask, LAUNCH_HTASK_INTERVAL, pInfo, streamEnv.timer, &pHTaskInfo->pTimer);