Merge pull request #29831 from taosdata/fix/stream_start

fix(stream): fix the invalid start task condition
This commit is contained in:
Shengliang Guan 2025-02-20 10:58:26 +08:00 committed by GitHub
commit 82b4409383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2686,7 +2686,7 @@ int32_t mndProcessConsensusInTmr(SRpcMsg *pMsg) {
break; break;
} }
if (((now - pe->ts) >= 10 * 1000) && allSame) { if (((now - pe->ts) >= 10 * 1000) || allSame) {
mDebug("s-task:0x%x sendTs:%" PRId64 " wait %.2fs and all tasks have same checkpointId", pe->req.taskId, mDebug("s-task:0x%x sendTs:%" PRId64 " wait %.2fs and all tasks have same checkpointId", pe->req.taskId,
pe->req.startTs, (now - pe->ts) / 1000.0); pe->req.startTs, (now - pe->ts) / 1000.0);
if (chkId > pe->req.checkpointId) { if (chkId > pe->req.checkpointId) {