fix:print log if assert & check epoch when update epoch
This commit is contained in:
parent
127cabb2c9
commit
770c88200f
|
@ -1451,7 +1451,7 @@ static bool doUpdateLocalEp(tmq_t* tmq, int32_t epoch, const SMqAskEpRsp* pRsp)
|
||||||
bool set = false;
|
bool set = false;
|
||||||
|
|
||||||
int32_t topicNumGet = taosArrayGetSize(pRsp->topics);
|
int32_t topicNumGet = taosArrayGetSize(pRsp->topics);
|
||||||
if (topicNumGet <= 0 && epoch <= tmq->epoch) {
|
if (epoch <= tmq->epoch) {
|
||||||
tscInfo("consumer:0x%" PRIx64 " no update ep epoch from %d to epoch %d, incoming topics:%d",
|
tscInfo("consumer:0x%" PRIx64 " no update ep epoch from %d to epoch %d, incoming topics:%d",
|
||||||
tmq->consumerId, tmq->epoch, epoch, topicNumGet);
|
tmq->consumerId, tmq->epoch, epoch, topicNumGet);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -795,7 +795,12 @@ static void *taosAsyncOutputLog(void *param) {
|
||||||
updateCron = 0;
|
updateCron = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pLogBuf->stop || pSlowBuf->stop) break;
|
if (pLogBuf->stop || pSlowBuf->stop) {
|
||||||
|
pLogBuf->lastDuration = LOG_MAX_WAIT_MSEC;
|
||||||
|
taosWriteLog(pLogBuf);
|
||||||
|
taosWriteLog(pSlowBuf);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -822,7 +827,7 @@ bool taosAssertDebug(bool condition, const char *file, int32_t line, const char
|
||||||
taosPrintTrace(flags, level, dflag, -1);
|
taosPrintTrace(flags, level, dflag, -1);
|
||||||
|
|
||||||
if (tsAssert) {
|
if (tsAssert) {
|
||||||
// taosCloseLog();
|
taosCloseLog();
|
||||||
taosMsleep(300);
|
taosMsleep(300);
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue