Merge pull request #26274 from taosdata/fix/3_liaohj

fix(stream): do update the checkpoint info if not in checkpoint status.
This commit is contained in:
Haojun Liao 2024-06-24 23:05:26 +08:00 committed by GitHub
commit 42beba30a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ int32_t streamTaskUpdateTaskCheckpointInfo(SStreamTask* pTask, bool restored, SV
SStreamTaskState* pStatus = streamTaskGetStatus(pTask); SStreamTaskState* pStatus = streamTaskGetStatus(pTask);
if ((!restored) && (pStatus->state != TASK_STATUS__CK)) { if (restored && (pStatus->state != TASK_STATUS__CK)) {
stDebug("s-task:0x%x vgId:%d restored:%d status:%s not update checkpoint-info, checkpointId:%" PRId64 "->%" PRId64 stDebug("s-task:0x%x vgId:%d restored:%d status:%s not update checkpoint-info, checkpointId:%" PRId64 "->%" PRId64
" failed", " failed",
pReq->taskId, vgId, restored, pStatus->name, pInfo->checkpointId, pReq->checkpointId); pReq->taskId, vgId, restored, pStatus->name, pInfo->checkpointId, pReq->checkpointId);