fix(stream): fix invalid checkpoint start time.

This commit is contained in:
Haojun Liao 2023-09-23 17:57:09 +08:00
parent 012ddadf25
commit a6ffb845c8
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ int32_t streamTaskBuildCheckpoint(SStreamTask* pTask) {
double el = (taosGetTimestampMs() - pTask->chkInfo.startTs) / 1000.0; double el = (taosGetTimestampMs() - pTask->chkInfo.startTs) / 1000.0;
if (remain == 0) { // all tasks are ready if (remain == 0) { // all tasks are ready
pTask->chkInfo.startTs = 0; // clear the recorded start time
stDebug("s-task:%s is ready for checkpoint", pTask->id.idStr); stDebug("s-task:%s is ready for checkpoint", pTask->id.idStr);
streamBackendDoCheckpoint(pMeta, pTask->checkpointingId); streamBackendDoCheckpoint(pMeta, pTask->checkpointingId);
streamSaveAllTaskStatus(pMeta, pTask->checkpointingId); streamSaveAllTaskStatus(pMeta, pTask->checkpointingId);