fix(stream): fix invalid checkpoint start time.
This commit is contained in:
parent
012ddadf25
commit
a6ffb845c8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue