add debug info

This commit is contained in:
yihaoDeng 2022-11-24 10:28:38 +08:00
parent be410b9903
commit febe918d36
1 changed files with 7 additions and 2 deletions

View File

@ -1427,10 +1427,10 @@ bool cliResetEpset(STransConnCtx* pCtx, STransMsg* pResp, bool hasEpSet) {
} else {
SEpSet epSet;
assert(pResp->contLen == sizeof(epSet));
// assert(pResp->contLen == sizeof(epSet));
int32_t valid = tDeserializeSEpSet(pResp->pCont, pResp->contLen, &epSet);
if (valid < 0) {
assert(0);
// assert(0);
}
if (!transEpSetIsEqual(&pCtx->epSet, &epSet)) {
tDebug("epset not equal, retry new epset");
@ -1454,6 +1454,11 @@ bool cliGenRetryRule(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
if (retry == false) {
return false;
}
if (pCtx->retryInit) {
if (-1 != pCtx->retryMaxTimeout && taosGetTimestampMs() - pCtx->retryInitTimestamp >= pCtx->retryMaxTimeout) {
return false;
}
}
bool noDelay = false;