refactor: update logs.
This commit is contained in:
parent
c38eb033a9
commit
8825065364
|
@ -1485,12 +1485,17 @@ int32_t streamProcessDispatchRsp(SStreamTask* pTask, SStreamDispatchRsp* pRsp, i
|
||||||
int32_t notRsp = 0;
|
int32_t notRsp = 0;
|
||||||
int32_t numOfFailed = 0;
|
int32_t numOfFailed = 0;
|
||||||
bool triggerDispatchRsp = false;
|
bool triggerDispatchRsp = false;
|
||||||
|
SActiveCheckpointInfo* pInfo = pTask->chkInfo.pActiveInfo;
|
||||||
|
|
||||||
// we only set the dispatch msg info for current checkpoint trans
|
// we only set the dispatch msg info for current checkpoint trans
|
||||||
|
int64_t tmpCheckpointId = -1;
|
||||||
|
int32_t tmpTranId = -1;
|
||||||
|
|
||||||
streamMutexLock(&pTask->lock);
|
streamMutexLock(&pTask->lock);
|
||||||
triggerDispatchRsp = (streamTaskGetStatus(pTask).state == TASK_STATUS__CK) &&
|
triggerDispatchRsp = (streamTaskGetStatus(pTask).state == TASK_STATUS__CK) &&
|
||||||
(pTask->chkInfo.pActiveInfo->activeId == pMsgInfo->checkpointId) &&
|
(pInfo->activeId == pMsgInfo->checkpointId) && (pInfo->transId != pMsgInfo->transId);
|
||||||
(pTask->chkInfo.pActiveInfo->transId != pMsgInfo->transId);
|
tmpCheckpointId = pInfo->activeId;
|
||||||
|
tmpTranId = pInfo->transId;
|
||||||
streamMutexUnlock(&pTask->lock);
|
streamMutexUnlock(&pTask->lock);
|
||||||
|
|
||||||
streamMutexLock(&pMsgInfo->lock);
|
streamMutexLock(&pMsgInfo->lock);
|
||||||
|
@ -1556,8 +1561,8 @@ int32_t streamProcessDispatchRsp(SStreamTask* pTask, SStreamDispatchRsp* pRsp, i
|
||||||
streamTaskSetTriggerDispatchConfirmed(pTask, pRsp->downstreamNodeId);
|
streamTaskSetTriggerDispatchConfirmed(pTask, pRsp->downstreamNodeId);
|
||||||
} else {
|
} else {
|
||||||
stWarn("s-task:%s checkpoint-trigger msg rsp for checkpointId:%" PRId64
|
stWarn("s-task:%s checkpoint-trigger msg rsp for checkpointId:%" PRId64
|
||||||
" transId:%d discard, since expired",
|
" transId:%d discard, current active checkpointId:%" PRId64 " active transId:%d, since expired",
|
||||||
pTask->id.idStr, pMsgInfo->checkpointId, pMsgInfo->transId);
|
pTask->id.idStr, pMsgInfo->checkpointId, pMsgInfo->transId, tmpCheckpointId, tmpTranId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue