fix(stream): remove invalid assert.

This commit is contained in:
Haojun Liao 2023-10-22 16:16:59 +08:00
parent 059e94e428
commit a882c639be
1 changed files with 1 additions and 8 deletions

View File

@ -2633,15 +2633,8 @@ int32_t mndProcessStreamHb(SRpcMsg *pReq) {
// kill the checkpoint trans and then set all tasks status to be normal // kill the checkpoint trans and then set all tasks status to be normal
if (checkpointFailed && activeCheckpointId != 0) { if (checkpointFailed && activeCheckpointId != 0) {
// if the execInfo.activeCheckpoint == 0, the checkpoint is restoring from wal // if the execInfo.activeCheckpoint == 0, the checkpoint is restoring from wal
if (execInfo.activeCheckpoint != 0) { mInfo("checkpointId:%" PRId64 " failed, issue task-reset trans to reset all tasks status", execInfo.activeCheckpoint);
ASSERT(execInfo.activeCheckpoint == activeCheckpointId);
}
mInfo("checkpointId:%" PRId64 " failed, issue task-reset trans to reset all tasks status", activeCheckpointId);
mndResetFromCheckpoint(pMnode); mndResetFromCheckpoint(pMnode);
// } else {
// mDebug("checkpoint:%"PRId64" reset has issued already, ignore it", activeCheckpointId);
// }
} }
taosThreadMutexUnlock(&execInfo.lock); taosThreadMutexUnlock(&execInfo.lock);